当前位置: 首页>>代码示例>>C++>>正文


C++ createConnections函数代码示例

本文整理汇总了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();
}
开发者ID:mcochner,项目名称:GoL,代码行数:30,代码来源:board.cpp

示例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();

}
开发者ID:hackdiy,项目名称:TIA,代码行数:26,代码来源:tia.cpp

示例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();
}
开发者ID:marek629,项目名称:SIR,代码行数:10,代码来源:OptionsDialog.cpp

示例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();
}
开发者ID:cupsnwires,项目名称:MapDrawer,代码行数:33,代码来源:mainwindow.cpp

示例5: m_perceptronWidget

PerceptronController::PerceptronController(PerceptronWidget& perceptronWidget, PerceptronWeightWidget& perceptronWeightWidget, PerceptronJsonModel& perceptronJsonModel)
    : m_perceptronWidget(perceptronWidget)
    , m_perceptronWeightWidget(perceptronWeightWidget)
    , m_perceptronJsonModel(perceptronJsonModel)
{
    createConnections();
}
开发者ID:bensinghbeno,项目名称:design-engine,代码行数:7,代码来源:perceptroncontroller.cpp

示例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());
}
开发者ID:007durgesh219,项目名称:BuildmLearn-Toolkit,代码行数:60,代码来源:formmain.cpp

示例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);
}
开发者ID:j2sg,项目名称:JIM,代码行数:7,代码来源:pricelistreport.cpp

示例8: QWidget

LabelingWidgetQt::LabelingWidgetQt(QWidget *parent) :
    QWidget(parent)
{
    setObjectName(tr("Labeling"));
    createWidgets();
    createConnections();
}
开发者ID:molsimmsu,项目名称:3mview,代码行数:7,代码来源:labelingwidgetqt.cpp

示例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;
}
开发者ID:AliYousuf,项目名称:univ-aca-mips,代码行数:32,代码来源:main.cpp

示例10: ScheduleCellWidget

SummaryWidget::SummaryWidget(QSharedPointer<WeekSummary> ws, SessionPainter* const sp, Week w, QWidget* parent)
    : ScheduleCellWidget(w, parent),
      summary(ws),
      spainter(sp)
{
    createConnections();
}
开发者ID:makroid,项目名称:TrainSchedule,代码行数:7,代码来源:summaryWidget.cpp

示例11: QWidget

SyncStatusWidget::SyncStatusWidget(QWidget *parent) :
    QWidget(parent)
{
    init();
    createConnections();
    updateStatus();
}
开发者ID:JasonCC,项目名称:symphytum,代码行数:7,代码来源:syncstatuswidget.cpp

示例12: QPlainTextEdit

XmlEdit::XmlEdit(QWidget *parent)
    : QPlainTextEdit(parent), completedAndSelected(false)
{
    createWidgets();
    createConnections();
    highlightCurrentLine();
}
开发者ID:descent,项目名称:qtermwidget,代码行数:7,代码来源:xmledit.cpp

示例13: QWidget

Results::Results(QWidget *parent) :
    QWidget(parent)
{
    createWidgetItems();
    setWidgetLayout();
    createConnections();
}
开发者ID:mostua,项目名称:TZSP,代码行数:7,代码来源:results.cpp

示例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;
}
开发者ID:cactorium,项目名称:SMART_Software,代码行数:30,代码来源:bci_c_bci_package.cpp

示例15: QDialog

MyRoutesAddDialog::MyRoutesAddDialog(QWidget* parent)
    : QDialog(parent)
{
    createWidgets();
    createLayout();
    createConnections();
}
开发者ID:makroid,项目名称:TrainSchedule,代码行数:7,代码来源:myRoutesAddDialog.cpp


注:本文中的createConnections函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。