本文整理汇总了C++中ConfigManager::setWindowFlags方法的典型用法代码示例。如果您正苦于以下问题:C++ ConfigManager::setWindowFlags方法的具体用法?C++ ConfigManager::setWindowFlags怎么用?C++ ConfigManager::setWindowFlags使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigManager
的用法示例。
在下文中一共展示了ConfigManager::setWindowFlags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: on_actionChangeConfig_triggered
void MainWindow::on_actionChangeConfig_triggered()
{
// Config manager
ConfigManager * cmanager;
cmanager = new ConfigManager();
cmanager->setWindowFlags (Qt::Window | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
cmanager->setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, cmanager->size(), qApp->desktop()->availableGeometry()));
QString configPath;
configPath = cmanager->isPreLoaded();
cmanager->setAskAgain(askConfigAgain);
if(cmanager->exec()==QDialog::Accepted)
{
configPath = cmanager->currentConfig;
askConfigAgain = cmanager->askAgain;
currentConfigDir = (cmanager->askAgain)?"":configPath;
saveSettings();
QMessageBox::information(this, tr("Configuration changed"), tr("The Configuration was switched!\nTo start work with new configuration, please restart application."), QMessageBox::Ok);
}
delete cmanager;
}