本文整理汇总了C++中createWidgets函数的典型用法代码示例。如果您正苦于以下问题:C++ createWidgets函数的具体用法?C++ createWidgets怎么用?C++ createWidgets使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createWidgets函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: QWidget
ModelExplorer::ModelExplorer(QWidget * parent)
: QWidget(parent),
mClassViewWidget(NULL),
mTreeViewWidget(NULL),
mObjectExplorer(NULL),
mClassViewUnderMouse(false),
mTreeViewUnderMouse(false),
mProgressBarLbl(NULL),
mSplitter(NULL),
mDlg(NULL),
mProgressBar(NULL),
mQProgressBar(NULL),
mClassAction(NULL),
mTreeAction(NULL),
mStackedWidget(NULL),
mToolBar(NULL),
mModel(openstudio::model::Model()),
mIddFile(mModel.iddFile())
{
mModel.order().setDirectOrder(HandleVector());
createProgressDlg();
createWidgets();
createActions();
createToolBars();
createLayout();
connectSignalsAndSlots();
restoreState();
setIddFile(mModel);
expandAllNodes();
}
开发者ID:CUEBoxer,项目名称:OpenStudio,代码行数:30,代码来源:ModelExplorer.cpp
示例2: QWidget
QConfigComboboxWidget::QConfigComboboxWidget(QString filename, QWidget *parent) :
QWidget(parent)
{
settings=NULL;
createWidgets();
setFilename(filename);
}
开发者ID:jkriege2,项目名称:QuickFit3,代码行数:7,代码来源:qconfigcomboboxwidget.cpp
示例3: KDockMainWindow
MyFracWindow::MyFracWindow() : KDockMainWindow(NULL, "mainwnd", WType_TopLevel),
_posValid(false),
_juliaMode(false),
_maxIter(0.5),
_threshold(0.5),
_gradientData(NULL),
_scrollTimer(NULL),
_scrollDir(0),
_generator(this, false),
_progressDialog(NULL)
{
KImageIO::registerFormats();
generatorThread.start(QThread::LowPriority);
createWidgets();
createActions();
createGUI();
_presets.loadPresets(kapp->config());
readParameters();
onDefaultView();
updateMode();
_scrollTimer = new QTimer(this);
connect(_scrollTimer, SIGNAL(timeout()), SLOT(scrollTimer()));
resize(700, 520);
setAutoSaveSettings();
readDockConfig();
}
开发者ID:BackupTheBerlios,项目名称:myfrac,代码行数:33,代码来源:myfrac.cpp
示例4: QWidget
LabelingWidgetQt::LabelingWidgetQt(QWidget *parent) :
QWidget(parent)
{
setObjectName(tr("Labeling"));
createWidgets();
createConnections();
}
开发者ID:molsimmsu,项目名称:3mview,代码行数:7,代码来源:labelingwidgetqt.cpp
示例5: QDialog
DMD_Settings::DMD_Settings(const DM_Settings &settings, QWidget *parent) :
QDialog(parent), settings_(settings)
{
createWidgets();
setWindowTitle(tr("Settings"));
}
开发者ID:RangelReale,项目名称:downloadmaid,代码行数:7,代码来源:dmd_settings.cpp
示例6: PropertyPanel
//Specific GUI component
//=======================================================
pspRandomSystemSpecificGUI::pspRandomSystemSpecificGUI(pspParticleSystem* ps){
mySystem = ps;
panel = new PropertyPanel();
panel->setBounds(0, 0, 200, 200);
createWidgets();
}
开发者ID:avperrotta,项目名称:MPSP-GIT,代码行数:9,代码来源:pspRandomSystem.cpp
示例7: QWidget
LevelOneDec::LevelOneDec(const QVector<QString> &vectorDate,
const QVector<QVector<double> > &vectorSensorReadings2D,
QWidget *parent) :
QWidget(parent)
{
vectorDateToLevelOne = vectorDate;
vectorSensorReadings2DToLevelOne = vectorSensorReadings2D;
row = vectorDateToLevelOne.size();
col = vectorSensorReadings2DToLevelOne[0].size();
retranslateUi();
createTables();
setVectorsToTables();
createDoubleBoxes();
createCharts();
createToolBar();
createWidgets();
}
开发者ID:EXL,项目名称:SensorMonitor,代码行数:25,代码来源:LevelOneDecWidget.cpp
示例8: QPlainTextEdit
XmlEdit::XmlEdit(QWidget *parent)
: QPlainTextEdit(parent), completedAndSelected(false)
{
createWidgets();
createConnections();
highlightCurrentLine();
}
开发者ID:descent,项目名称:qtermwidget,代码行数:7,代码来源:xmledit.cpp
示例9: QDialog
MainWindow::MainWindow(QWidget *parent)
: QDialog(parent)
{
createWidgets();
connect(buttonBox, SIGNAL(accepted()), this, SLOT(writeSettings()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(browse, SIGNAL(clicked()), this, SLOT(selectPath()));
QVBoxLayout *groupBoxLayout = new QVBoxLayout;
groupBoxLayout->addSpacing(10);
groupBoxLayout->addWidget(new QLabel("Default filename:"));
groupBoxLayout->addWidget(nameEdit);
groupBoxLayout->addSpacing(20);
groupBoxLayout->addWidget(new QLabel("Image format:"));
groupBoxLayout->addWidget(fileExtDropdown);
groupBoxLayout->addSpacing(25);
groupBoxLayout->addWidget(new QLabel("Destination folder:"));
groupBoxLayout->addWidget(pathViewer);
groupBoxLayout->addWidget(browse);
groupBoxLayout->addSpacing(25);
QGroupBox *groupBox = new QGroupBox("ScreenShot Settings");
groupBox->setLayout(groupBoxLayout);
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(groupBox);
mainLayout->addWidget(buttonBox);
setLayout(mainLayout);
loadSettings();
}
开发者ID:msf86,项目名称:Hotkey-Screenshot,代码行数:33,代码来源:mainwindow.cpp
示例10: QDialog
QModernProgressDialog::QModernProgressDialog(const QString & labelText, const QString & cancelButtonText, QWidget* parent, Qt::WindowFlags f):
QDialog(parent, f)
{
createWidgets();
setLabelText(labelText);
setCancelButtonText(cancelButtonText);
}
开发者ID:jkriege2,项目名称:LitSoz3,代码行数:7,代码来源:qmodernprogresswidget.cpp
示例11: QWidget
QFShutterConfigWidget::QFShutterConfigWidget(QWidget* parent):
QWidget(parent)
{
useThread=true;
shutterStateUpdateInterval=351;
iconOpened=QPixmap(":/libqf3widgets/shutter_open.png");
iconClosed=QPixmap(":/libqf3widgets/shutter_closed.png");
m_thread=new QFShutterConfigWidgetThread(this);
connect(m_thread, SIGNAL(stateChanged(bool)), this, SLOT(shutterStateChanged(bool)));
timUpdate=new QTimer(this);
m_log=NULL;
m_pluginServices=NULL;
locked=false;
moving=false;
createWidgets();
createActions();
updateStates();
if (!useThread) {
timUpdate->setSingleShot(true);
timUpdate->setInterval(shutterStateUpdateInterval);
connect(timUpdate, SIGNAL(timeout()), this, SLOT(displayShutterStates()));
timUpdate->start(shutterStateUpdateInterval);
}
//QTimer::singleShot(stageStateUpdateInterval, this, SLOT(displayAxisStates()));
}
开发者ID:jkriege2,项目名称:QuickFit3,代码行数:33,代码来源:qfshutterconfigwidget.cpp
示例12: 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
示例13: QWidget
KTreeViewSearchLineWidget::KTreeViewSearchLineWidget( QWidget *parent, QTreeView *treeView )
: QWidget( parent ), d( new Private )
{
d->treeView = treeView;
QTimer::singleShot( 0, this, SLOT(createWidgets()) );
}
开发者ID:Axure,项目名称:okular,代码行数:7,代码来源:ktreeviewsearchline.cpp
示例14: setWindowTitle
MainWindow::MainWindow()
{
setWindowTitle( tr( "TWEEDY - Stop Motion software" ) );
createActions();
createStartWindow();
createMenuBar();
createToolBar();
createWidgets();
createStatusBar();
_isPlaying = false;
_timer = new QTimer( this );
_fps = 8;
_time = 0;
connect( this, SIGNAL( timeChanged( int ) ), this->_viewerImg, SLOT( displayChanged( int ) ) );
connect( &( this->_timelineGraphic->getTimelineDataWrapper() ), SIGNAL( timeChanged( int ) ), this->_viewerImg, SLOT( displayChanged( int ) ) );
connect( &(this->_timelineGraphic->getTimelineDataWrapper()), SIGNAL( displayChanged( int, int ) ), _chutier, SLOT( changedPixmap( int, int ) ) );
connect( _timer, SIGNAL( timeout() ), this, SLOT( increaseTime() ) );
connect( &(this->_timelineGraphic->getTimelineDataWrapper()), SIGNAL( timeChanged( int )), this, SLOT( changeTimeViewer( int ) ) );
connect( this, SIGNAL(timeChanged(int)), &(this->_timelineGraphic->getTimelineDataWrapper()), SLOT(time(int)) );
this->adjustSize();
Q_EMIT timeChanged( _time );
_timelineGraphic->getTimelineDataWrapper()._currentTime = _time;
QSettings settings("IMAC","Tweedy");
}
开发者ID:Elfhir,项目名称:tweedy,代码行数:31,代码来源:MainWindow.cpp
示例15: createWidgets
void chanFileSystemDockWidget::init() {
createWidgets();
createContextMenu();
createFileSystemTree();
createRoot();
}
开发者ID:jzsun,项目名称:ChanIDE,代码行数:7,代码来源:chanFileSystemDockWidget.cpp
示例16: QMainWindow
EditorFrame::EditorFrame(QWidget * parent)
: QMainWindow(parent),
mModelExplorer(nullptr),
mTableModel(nullptr),
mTreeModel(nullptr),
mStatusBar(nullptr),
mSearchViews(nullptr),
mCompleter(nullptr),
mAboutAction(nullptr),
mAddAction(nullptr),
mCopyAction(nullptr),
mExitAction(nullptr),
mExportIdfAction(nullptr),
mImportIdfAction(nullptr),
mNewIdkAction(nullptr),
mOpenIdkAction(nullptr),
mPasteAction(nullptr),
mRemoveAction(nullptr),
mSaveIdkAction(nullptr),
mSaveIdkAsAction(nullptr),
mExpandAllNodesAction(nullptr),
mToggleGUIDsAction(nullptr),
mSearchViewsAction(nullptr),
mToggleCommentsAction(nullptr),
mTogglePrecisionAction(nullptr),
mToggleUnitsAction(nullptr),
mFileMenu(nullptr),
mHelpMenu(nullptr),
mContextMenu(nullptr),
mFileToolBar(nullptr),
mEditToolBar(nullptr),
mPrefToolBar(nullptr),
mSearchToolBar(nullptr),
mActionDescriptionPrefix(QString("Add ")),
mLastPathOpened(QApplication::applicationDirPath()),
mShowGUIDs(true),
mShowComments(true),
mShowPrecision(true)
{
createWidgets();
createActions();
createMenus();
createToolBars();
createStatusBar();
createLayout();
connectSignalsAndSlots();
readSettings();
setCurrentFile("");
///! TODO HACK
openstudio::model::Model model = mModelExplorer->getModel();
openstudio::WorkspaceObjectVector objects = model.objects();
QStringList strings;
for (const openstudio::WorkspaceObject& object : objects){
strings << object.iddObject().name().c_str();
}
mCompleter = new QCompleter(strings,this);
mCompleter->setCaseSensitivity(Qt::CaseInsensitive);
if(mSearchViews) mSearchViews->setCompleter(mCompleter);
}
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:60,代码来源:EditorFrame.cpp
示例17: setName
TubeManager::TubeManager() {
setName("tube"); // Установка имени модуля (внутреннее)
setTextName("Труба"); // Установка имени модуля (внешнее)
checkManagerState(); // Проверка состояния плагина (вкл. или выкл.)
createWidgets();
m_settings = NULL;
}
开发者ID:gen1izh,项目名称:cpp,代码行数:7,代码来源:tubemanager.cpp
示例18: QWidget
InputMappingDialog::InputMappingDialog(QWidget* parent, ProcessorNetwork* network)
: QWidget(parent)
, processorNetwork_(network)
, scrollStretchItem_(0)
, widgetsValid_(false)
{
setWhatsThis(whatsThisInfo);
if (processorNetwork_)
processorNetwork_->addObserver(this);
scrollArea_ = new QScrollArea();
QWidget* widget = new QWidget();
scrollArea_->setWidget(widget);
scrollArea_->setWidgetResizable(true);
scrollLayout_ = new QVBoxLayout(widget);
QVBoxLayout* mainLayout = new QVBoxLayout();
mainLayout->addWidget(scrollArea_);
setLayout(mainLayout);
setMaximumHeight(1024);
setMinimumSize(400, 300);
createWidgets();
}
开发者ID:bsmr-opengl,项目名称:voreen,代码行数:26,代码来源:inputmappingdialog.cpp
示例19: 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
示例20: main
int main(void) {
GEvent* pe;
// Initialize the display
gfxInit();
// Set the widget defaults
gwinSetDefaultFont(gdispOpenFont("*"));
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
gdispClear(White);
// create the widget
createWidgets();
// We want to listen for widget events
geventListenerInit(&gl);
gwinAttachListener(&gl);
while(1) {
// Get an Event
pe = geventEventWait(&gl, TIME_INFINITE);
}
return 0;
}
开发者ID:BeyondCloud,项目名称:uRock,代码行数:25,代码来源:main.c
注:本文中的createWidgets函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论