本文整理汇总了C++中createConnections函数的典型用法代码示例。如果您正苦于以下问题:C++ createConnections函数的具体用法?C++ createConnections怎么用?C++ createConnections使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createConnections函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QWidget
Board::Board(QWidget *parent) :
QWidget(parent), nHSqueres(DEFAULT_NUMBER_OF_HSQUARES), nVSqueres(DEFAULT_NUMBER_OF_WSQUARES),
nAliveCells(0)
{
readSettings();
int width = nHSqueres;
int height = nVSqueres;
for(int i=0; i<height; i++)
for(int j=0; j<width; j++)
{
squaresVec.append(new Square(this,i,j));
}
QGridLayout *gridLayout = new QGridLayout(this);
int k=0;
for(int i=0; i<height; i++)
for(int j=0; j<width; j++)
{
gridLayout->addWidget(squaresVec[k++],i,j);
}
gridLayout->setSpacing(0); // aby som vynuloval miesto medzi stvorcekmi
this->setFixedSize(this->sizeHint().width() , this->sizeHint().height());
createConnections();
}
示例2: QMainWindow
TIA::TIA(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::TIA)
{
ui->setupUi(this);
this->showMaximized();
setDockNestingEnabled(true);
m_TIAPtr = this;
m_StatusBar = this->statusBar();
m_Style = new HStyle;
createModels();
createWidgets();
createViews();
createActions();
createConnections();
createDialogs();
m_VLog->start();
}
示例3: QDialog
/** Sets up window, loads settings and creates connections.
* \sa setupUi() loadSettings() createConnections()
*/
OptionsDialog::OptionsDialog(QWidget * parent, Qt::WindowFlags f)
: QDialog(parent, f)
{
setupUi();
loadSettings();
createConnections();
}
示例4: QMainWindow
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent),
scene(new QGraphicsScene(this)),
view(new QGraphicsView(scene, this)),
pbLoadFile(new QPushButton("Load Input", this)),
lbLoadFile(new QLabel("<input file>", this)),
pbLoadLog(new QPushButton("Load Log", this)),
lbLoadLog(new QLabel("<input log>", this)),
pbLoadMap(new QPushButton("Load Map", this)),
lbLoadMap(new QLabel("<input map>", this)),
pbSaveMap(new QPushButton("Save Map", this)),
lbSaveMap(new QLabel("<output map>", this)),
pbDumpLog(new QPushButton("Save Log", this)),
lbDumpLog(new QLabel("<output log>", this)),
pbRun(new QPushButton("Run", this)),
pbCancel(new QPushButton("Cancel", this)),
pbSave(new QPushButton("Save", this)),
prog(new QProgressBar(this)),
mapper(prog)
{
initWidgets();
createForm();
createConnections();
}
示例5: m_perceptronWidget
PerceptronController::PerceptronController(PerceptronWidget& perceptronWidget, PerceptronWeightWidget& perceptronWeightWidget, PerceptronJsonModel& perceptronJsonModel)
: m_perceptronWidget(perceptronWidget)
, m_perceptronWeightWidget(perceptronWeightWidget)
, m_perceptronJsonModel(perceptronJsonModel)
{
createConnections();
}
示例6: QMainWindow
FormMain::FormMain(QWidget *parent)
: QMainWindow(parent),
m_statusProgress(new QProgressBar(this)),
m_statusLabel(new QLabel(this)),
m_centralArea(new QScrollArea(this)),
m_centralLayout(new QVBoxLayout(m_centralArea)),
m_firstTimeShow(true),
m_ui(new Ui::FormMain),
m_simulatorWindow(NULL) {
m_ui->setupUi(this);
m_normalTitle = APP_LONG_NAME;
m_unsavedTitle = m_normalTitle + " *";
m_statusProgress->setFixedHeight(m_ui->m_statusBar->sizeHint().height());
// Addd necessary widgets to status.
m_ui->m_statusBar->addWidget(m_statusProgress);
m_ui->m_statusBar->addWidget(m_statusLabel, 1);
m_statusLabel->setVisible(false);
m_statusProgress->setVisible(false);
setWindowTitle(m_normalTitle);
// Disable "maximize" button.
setWindowFlags(windowFlags() & ~Qt::WindowMaximizeButtonHint);
m_centralArea->setFrameStyle(QFrame::NoFrame);
setCentralWidget(m_centralArea);
setupSimulatorWindow();
setupActionShortcuts();
setupIcons();
setupTrayMenu();
setupToolbar();
loadSizeAndPosition();
createConnections();
//#if !defined(DEBUG)
#if defined(DISABLE_STORE)
m_ui->m_actionUploadApplicationToStore->setVisible(false);
#else
if (!qApp->settings()->value(APP_CFG_GEN, "enable_store", true).toBool()) {
m_ui->m_actionUploadApplicationToStore->setVisible(false);
}
#endif
#if defined(DISABLE_APK_GENERATION)
m_ui->m_actionGenerateMobileApplication->setVisible(false);
#else
if (!qApp->settings()->value(APP_CFG_GEN, "enable_apk_generation", true).toBool()) {
m_ui->m_actionGenerateMobileApplication->setVisible(false);
}
#endif
//#endif
// Make sure simulator window is displayed.
m_ui->m_actionViewSimulatorWindow->setChecked(m_simulatorWindow->isVisibleOnStartup());
m_ui->m_actionStickSimulatorWindow->setChecked(m_simulatorWindow->isSticked());
}
示例7: QWidget
View::Report::PriceListReport::PriceListReport(int companyId, QList<Model::Domain::Product *> *products, QWidget *parent) : QWidget(parent), _companyId(companyId)
{
createWidgets(products);
createConnections();
setWindowTitle(tr("Price List Report"));
setAttribute(Qt::WA_DeleteOnClose);
}
示例8: QWidget
LabelingWidgetQt::LabelingWidgetQt(QWidget *parent) :
QWidget(parent)
{
setObjectName(tr("Labeling"));
createWidgets();
createConnections();
}
示例9: main
int main( int argc, char *argv[] )
{
QApplication app( argc, argv );
if ( createConnections() ) {
QSqlCursor staffCursor( "staff" );
QDataTable *staffTable = new QDataTable( &staffCursor );
QSqlPropertyMap *propMap = new QSqlPropertyMap();
CustomSqlEditorFactory *editorFactory = new CustomSqlEditorFactory();
propMap->insert( "StatusPicker", "statusid" );
staffTable->installPropertyMap( propMap );
staffTable->installEditorFactory( editorFactory );
app.setMainWidget( staffTable );
staffTable->addColumn( "forename", "Forename" );
staffTable->addColumn( "surname", "Surname" );
staffTable->addColumn( "salary", "Annual Salary" );
staffTable->addColumn( "statusid", "Status" );
QStringList order = QStringList() << "surname" << "forename";
staffTable->setSort( order );
staffTable->refresh();
staffTable->show();
return app.exec();
}
return 1;
}
示例10: ScheduleCellWidget
SummaryWidget::SummaryWidget(QSharedPointer<WeekSummary> ws, SessionPainter* const sp, Week w, QWidget* parent)
: ScheduleCellWidget(w, parent),
summary(ws),
spainter(sp)
{
createConnections();
}
示例11: QWidget
SyncStatusWidget::SyncStatusWidget(QWidget *parent) :
QWidget(parent)
{
init();
createConnections();
updateStatus();
}
示例12: QPlainTextEdit
XmlEdit::XmlEdit(QWidget *parent)
: QPlainTextEdit(parent), completedAndSelected(false)
{
createWidgets();
createConnections();
highlightCurrentLine();
}
示例13: QWidget
Results::Results(QWidget *parent) :
QWidget(parent)
{
createWidgetItems();
setWidgetLayout();
createConnections();
}
示例14: createConnections
void C_BCI_Package::Run()
{
//Initialize the System
bciState = BCI_INITIALIZATION;
//Keep Track of the Mission Time
stopwatch.start();
//Make Connections to peripherals
createConnections();
//Configure Repetitive Visual Stimulus and send to Flasher
pRVS->Generate();
pFlasherIO->SendRVS();
//Record our TM to an output file
pTelemetryManager->RecordTMToFile(TM_DATA_OUTPUTFILE_BIN);
pEEG_IO->RecordTMToFile(EEG_DATA_OUTPUTFILE_BIN);
//Begin Thread Execution for EEG and BRS IO
startThreads();
debugLog->println(BCI_LOG, "Initialization Complete, Moving to STANDBY..." , true );
//Move to Standby
bciState = BCI_STANDBY;
//This is all we need to do here, the Signals and Slots will
//take care of notifying us for remote commands and Emergency Stops
return;
}
示例15: QDialog
MyRoutesAddDialog::MyRoutesAddDialog(QWidget* parent)
: QDialog(parent)
{
createWidgets();
createLayout();
createConnections();
}