本文整理汇总了C++中QDialog::activateWindow方法的典型用法代码示例。如果您正苦于以下问题:C++ QDialog::activateWindow方法的具体用法?C++ QDialog::activateWindow怎么用?C++ QDialog::activateWindow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDialog
的用法示例。
在下文中一共展示了QDialog::activateWindow方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: showDialog
void showDialog(QDialog &t_Dialog)
{
t_Dialog.show();
t_Dialog.raise();
t_Dialog.activateWindow();
QApplication::processEvents();
}
示例2: QDialog
LVRRemoveOutliersDialog::LVRRemoveOutliersDialog(LVRPointCloudItem* pc, LVRModelItem* parent, QTreeWidget* treeWidget, vtkRenderWindow* window) :
m_pc(pc), m_parent(parent), m_treeWidget(treeWidget), m_renderWindow(window)
{
// Setup DialogUI and events
QDialog* dialog = new QDialog(m_treeWidget);
m_dialog = new RemoveOutliersDialog;
m_dialog->setupUi(dialog);
connectSignalsAndSlots();
dialog->show();
dialog->raise();
dialog->activateWindow();
}
示例3: QDialog
LVRReconstructViaMarchingCubesDialog::LVRReconstructViaMarchingCubesDialog(string decomposition, LVRPointCloudItem* pc, LVRModelItem* parent, QTreeWidget* treeWidget, vtkRenderWindow* window) :
m_decomposition(decomposition),
m_pc(pc), m_parent(parent),
m_treeWidget(treeWidget),
m_renderWindow(window)
{
m_master = this;
// Setup DialogUI and events
QDialog* dialog = new QDialog(m_treeWidget);
m_dialog = new ReconstructViaMarchingCubesDialog;
m_dialog->setupUi(dialog);
if(decomposition == "PMC")
{
dialog->setWindowTitle("Planar Marching Cubes");
}
connectSignalsAndSlots();
m_progressDialog = new QProgressDialog;
m_progressDialog->setMinimum(0);
m_progressDialog->setMaximum(100);
m_progressDialog->setMinimumDuration(100);
m_progressDialog->setWindowTitle("Processing...");
// Register LVR progress callbacks
lvr::ProgressBar::setProgressCallback(&updateProgressbar);
lvr::ProgressBar::setProgressTitleCallback(&updateProgressbarTitle);
connect(this, SIGNAL(progressValueChanged(int)), m_progressDialog, SLOT(setValue(int)));
connect(this, SIGNAL(progressTitleChanged(const QString&)), m_progressDialog, SLOT(setLabelText(const QString&)));
dialog->show();
dialog->raise();
dialog->activateWindow();
}