本文整理汇总了C++中createConnections函数的典型用法代码示例。如果您正苦于以下问题:C++ createConnections函数的具体用法?C++ createConnections怎么用?C++ createConnections使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createConnections函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: QDialog
QCustomWindowLevelEditWidget::QCustomWindowLevelEditWidget(QWidget *parent)
: QDialog(parent)
{
setupUi(this);
createConnections();
loadCustomWindowLevelPresets();
}
开发者ID:chinhtrandn,项目名称:starviewer,代码行数:7,代码来源:qcustomwindowleveleditwidget.cpp
示例17: QGraphicsLineItem
PhysVector::PhysVector(CartesianGraph *pParent, const QString Name, PhysParticle *pStart, PhysParticle *pEnd) :
QGraphicsLineItem(pParent), PhysBaseItem() {
m_pLabel = NULL;
m_pParent = pParent;
m_pDataObj = new PhysVectorDataObj(Name);
m_Color = Qt::black;
m_arrowSize = 20;
m_dragIndex = DI_VECTORLINE;
m_pDataObj ->Magnitude(50.0);
m_bUseNewThetaAngle = false;
m_Theta.bAboveAxis = true;
m_Theta.degrees = 45.0;
m_Theta.axisOrientation = AXIS_HORIZ;
m_pStartParticle = NULL;
m_pEndParticle = NULL;
m_pLabel = new CartesianLabel(this);
m_bDraw = true;
if (pStart)
StartParticle(pStart);
if (pEnd)
EndParticle(pEnd);
m_pParent = pParent;
init();
createConnections();
}
开发者ID:caolandix,项目名称:DarkSynthesis,代码行数:26,代码来源:physvector.cpp
示例18: main
int main( int argc, char *argv[] )
{
QApplication app( argc, argv, FALSE );
if ( createConnections() ) {
QSqlCursor cur( "creditors" );
QStringList orderFields = QStringList() << "surname" << "forename";
QSqlIndex order = cur.index( orderFields );
QStringList filterFields = QStringList() << "surname" << "city";
QSqlIndex filter = cur.index( filterFields );
cur.setValue( "surname", "Chirac" );
cur.setValue( "city", "Paris" );
cur.select( filter, order );
while ( cur.next() ) {
int id = cur.value( "id" ).toInt();
QString name = cur.value( "forename" ).toString() + " " +
cur.value( "surname" ).toString();
qDebug( QString::number( id ) + ": " + name );
}
}
return 0;
}
开发者ID:nightfly19,项目名称:renyang-learn,代码行数:27,代码来源:main.cpp
示例19: main
int main( int argc, char *argv[] )
{
QApplication app( argc, argv );
if ( createConnections() ) {
QSqlCursor staffCursor( "staff" );
QDataTable *staffTable = new QDataTable( &staffCursor );
app.setMainWidget( staffTable );
staffTable->addColumn( "forename", "Forename" );
staffTable->addColumn( "surname", "Surname" );
staffTable->addColumn( "salary", "Annual Salary" );
QStringList order = QStringList() << "surname" << "forename";
staffTable->setSort( order );
staffTable->refresh();
staffTable->show();
return app.exec();
}
return 1;
}
开发者ID:aroraujjwal,项目名称:qt3,代码行数:26,代码来源:main.cpp
示例20: QMainWindow
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
setupUi(this);
m_unitOfLengthActions = new QActionGroup(m_menuSettings);
m_actionLoadInputImage->setShortcuts(
QList<QKeySequence>() << (Qt::CTRL + Qt::Key_L) << (Qt::CTRL + Qt::Key_O));
m_actionSavePoster->setShortcut(Qt::CTRL + Qt::Key_S);
m_actionExit->setShortcut(Qt::CTRL + Qt::Key_Q);
m_actionPosteRazorManual->setShortcut(Qt::Key_F1);
m_actionLoadInputImage->setIcon(QApplication::style()->standardPixmap(QStyle::SP_DirOpenIcon));
m_actionSavePoster->setIcon(QApplication::style()->standardPixmap(QStyle::SP_DialogSaveButton));
m_actionSavePoster->setEnabled(false);
setWindowIcon(QIcon(QLatin1String(":/Icons/posterazor.png")));
setWindowTitle(applicationNameWithVersion());
createConnections();
populateUI();
retranslateUi();
setAcceptDrops(true);
}
开发者ID:ockham,项目名称:posterazor,代码行数:25,代码来源:mainwindow.cpp
注:本文中的createConnections函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论