• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ showMaximized函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中showMaximized函数的典型用法代码示例。如果您正苦于以下问题:C++ showMaximized函数的具体用法?C++ showMaximized怎么用?C++ showMaximized使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了showMaximized函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: showNormal

void FMainWindow::swithMaxNormal()
{
    if(isMaximized())
    {
        showNormal();
    }else{
        showMaximized();
    }
}
开发者ID:histest,项目名称:his,代码行数:9,代码来源:fmainwindow.cpp


示例2: showMaximized

void KviMdiChild::maximize()
{
	if(isVisible())
	{
		showMaximized();
	} else {
		setWindowState(windowState() & Qt::WindowMaximized & ~Qt::WindowMaximized);
	}
}
开发者ID:namikaze90,项目名称:KVIrc,代码行数:9,代码来源:KviMdiChild.cpp


示例3: QMainWindow

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    mainWizard(NULL)
{
    setWindowTitle(tr("Trajectory Analysis System"));
    showMaximized();

    createMenu();
}
开发者ID:Cysu,项目名称:TrajSys,代码行数:9,代码来源:mainwindow.cpp


示例4: showFullScreen

void MainWindow::toggleFullscreen ( )
{
    if(m_to_full->isChecked())
    {
        showFullScreen();
    }else{
        showMaximized();
    }
}
开发者ID:fulinux,项目名称:pdf-1,代码行数:9,代码来源:mainwindow.cpp


示例5: showMaximized

void StackedChatWidget::onToggleFullscreen()
{
	if (isFullScreen()) {
		showMaximized();
	} else {
		setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint);
		showFullScreen();
	}
}
开发者ID:AlexeyProkhin,项目名称:qutim,代码行数:9,代码来源:stackedchatwidget.cpp


示例6: qDebug

void MainWidget::on_maximizeButton_clicked()
{
    qDebug() << "on_maximizeButton_clicked";
    if (maximizedState) {
        showNormal();
    } else {
        showMaximized();
    }
}
开发者ID:SunRunAway,项目名称:AprilShot,代码行数:9,代码来源:mainwidget.cpp


示例7: QGLWidget

xfWidget::xfWidget( QWidget* parent )
    : QGLWidget( parent )
{
    setGeometry( 150, 100, 1024, 576 );
    scaling = 1.0;
    xrot = yrot = zrot = 0.0f;
    posx = posy = 0.0f;
    showMaximized();
}
开发者ID:fxia22,项目名称:OpenGL_Development,代码行数:9,代码来源:xfWidget.cpp


示例8: showMaximized

void MainWindow::LoadSettings()
{
    // Window/dialog sizes
    if (mSettings->value(SETTINGS_WINDOW_MAXIMIZED, false).toBool())
    {
        showMaximized();
    }
    else
    {
        resize(mSettings->value(SETTINGS_WINDOW_WIDTH, 800).toInt(),
               mSettings->value(SETTINGS_WINDOW_HEIGHT, 600).toInt());
    }

    // Show * states
    mUI.mActionShowStyle->setChecked(mSettings->value(SETTINGS_SHOW_STYLE, true).toBool());
    mUI.mActionShowErrors->setChecked(mSettings->value(SETTINGS_SHOW_ERRORS, true).toBool());
    mUI.mActionShowWarnings->setChecked(mSettings->value(SETTINGS_SHOW_WARNINGS, true).toBool());
    mUI.mActionShowPortability->setChecked(mSettings->value(SETTINGS_SHOW_PORTABILITY, true).toBool());
    mUI.mActionShowPerformance->setChecked(mSettings->value(SETTINGS_SHOW_PERFORMANCE, true).toBool());
    mUI.mActionShowInformation->setChecked(mSettings->value(SETTINGS_SHOW_INFORMATION, true).toBool());

    mUI.mResults->ShowResults(SHOW_ERRORS, mUI.mActionShowErrors->isChecked());
    mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked());

    // Main window settings
    const bool showMainToolbar = mSettings->value(SETTINGS_TOOLBARS_MAIN_SHOW, true).toBool();
    mUI.mActionToolBarMain->setChecked(showMainToolbar);
    mUI.mToolBarMain->setVisible(showMainToolbar);

    const bool showViewToolbar = mSettings->value(SETTINGS_TOOLBARS_VIEW_SHOW, true).toBool();
    mUI.mActionToolBarView->setChecked(showViewToolbar);
    mUI.mToolBarView->setVisible(showViewToolbar);

    const bool showFilterToolbar = mSettings->value(SETTINGS_TOOLBARS_FILTER_SHOW, true).toBool();
    mUI.mActionToolBarFilter->setChecked(showFilterToolbar);
    mUI.mToolBarFilter->setVisible(showFilterToolbar);

    SetLanguage(mSettings->value(SETTINGS_LANGUAGE, mTranslation->SuggestLanguage()).toString());

    bool succeeded = mApplications->LoadSettings();
    if (!succeeded)
    {
        QString msg = tr("There was a problem with loading the editor application settings.\n\n"
                         "This is probably because the settings were changed between the Cppcheck versions. "
                         "Please check (and fix) the editor application settings, otherwise the editor "
                         "program might not start correctly.");
        QMessageBox msgBox(QMessageBox::Warning,
                           tr("Cppcheck"),
                           msg,
                           QMessageBox::Ok,
                           this);
        msgBox.exec();

    }

}
开发者ID:zblair,项目名称:cppcheck,代码行数:56,代码来源:mainwindow.cpp


示例9: QWidget

CustomWindow::CustomWindow(QWidget *parent) : QWidget(parent), ui(new Ui::CustomWindow)
{
    QFile file(":/CustomWindow.css");
    if (file.open(QFile::ReadOnly))
    {
        setStyleSheet(file.readAll());
        file.close();
    }

    ui->setupUi(this);
    ui->tbMenu->setIcon(QIcon(":/ui/images/app_icon.png"));

    setWindowFlags(Qt::CustomizeWindowHint);
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_DeleteOnClose);
    setMouseTracking(true);
    ui->titleBar->setMouseTracking(true);
    ui->LTitle->setMouseTracking(true);
    ui->tbMenu->setMouseTracking(true);
    ui->pbMin->setMouseTracking(true);
    ui->pbMax->setMouseTracking(true);
    ui->pbClose->setMouseTracking(true);
    ui->centralWidget->setMouseTracking(true);

    centralLayout = new QHBoxLayout(ui->centralWidget);
    centralLayout->setContentsMargins(9,9,9,9);

    addAction(ui->actionClose);

    connect(ui->pbMin, SIGNAL(clicked()), this, SLOT(minimizeBtnClicked()));
    connect(ui->pbMax, SIGNAL(clicked()), this, SLOT(maximizeBtnClicked()));
    connect(ui->pbClose, SIGNAL(clicked()), this, SLOT(close()));

    //Per poder rebre les dades del ratolí sense haver de clicar cap botó
    m_titleMode = FullTitle;
    moveWidget = false;
    inResizeZone = false;
    allowToResize = false;
    resizeVerSup = false;
    resizeHorEsq = false;
    resizeDiagSupEsq = false;
    resizeDiagSupDer = false;


    QSettings settings("dialogs.ini", QSettings::IniFormat);
    QRect geo = settings.value("geometry").toRect();

    if (geo.height() > 0 and geo.x() < QApplication::desktop()->width() and geo.width() > 0 and geo.y() < QApplication::desktop()->height())
        setGeometry(geo);

    if (settings.value("maximized").toBool())
    {
        showMaximized();
        ui->pbMax->setIcon(QIcon(":/ui/images/app_rest.png"));
    }
}
开发者ID:nzin,项目名称:qt-coding,代码行数:56,代码来源:CustomWindow.cpp


示例10: QMainWindow

Editor::Editor(const Logger* lg, ProjectManager* pm, QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Editor),
    GridVisible(true),
    LogViewerDialog(lg,this),
    LayerViewerDialog(this),
    ChooseExportTypeDialog(0),
    UndoViewerDialog(0),
    ProjectManagerPtr(pm)
{
    ui->setupUi(this);

    connect(this->ui->tabWidget,SIGNAL(requestNewArray(int)),pm,SLOT(createNewArray(int)));
    connect(this->ui->tabWidget,SIGNAL(currentArrayChanged(Array*)),pm,SLOT(setCurrentArray(Array*)));

    connect(pm,SIGNAL(newArrayCreated(int,Array*)),this->ui->tabWidget,SLOT(setNewArray(int,Array*)));
    connect(lg,SIGNAL(totalLogCountChanged(int)),&(this->LogViewerDialog),SLOT(setTotalLogCount(int)));
    connect(this->ui->tabWidget,SIGNAL(layerTreeModelChanged(LayerTreeModel*)),&LayerViewerDialog,SLOT(setLayerTreeModel(LayerTreeModel*)));
    connect(&LayerViewerDialog,SIGNAL(selectionModelChanged(QItemSelectionModel*)),this->ui->tabWidget,SLOT(setLayerSelectionModel(QItemSelectionModel*)));

    //LayerViewerDialog buttons/key stroke signals
    connect(&LayerViewerDialog,SIGNAL(deleteSelectedLayers()),SLOT(on_LayerViewer_deleteLayers()));
    connect(&LayerViewerDialog,SIGNAL(groupSelectedLayers()),SLOT(on_LayerViewer_groupLayers()));
    connect(&LayerViewerDialog,SIGNAL(ungroupSelectedLayers()),SLOT(on_LayerViewer_ungroupLayers()));
    connect(&LayerViewerDialog,SIGNAL(moveSelectedLayersUp()),SLOT(on_LayerViewer_moveLayersUp()));
    connect(&LayerViewerDialog,SIGNAL(moveSelectedLayersDown()),SLOT(on_LayerViewer_moveLayersDown()));
    connect(&LayerViewerDialog,SIGNAL(moveSelectedLayersToFront()),SLOT(on_LayerViewer_moveLayersToFront()));
    connect(&LayerViewerDialog,SIGNAL(moveSelectedLayersToBack()),SLOT(on_LayerViewer_moveLayersToBack()));

    //unchecks the tool bar buttons when the corresponding window is closed/rejected (QDialog)
    connect(&LogViewerDialog,SIGNAL(rejected()),SLOT(on_LogViewer_closed()));
    connect(&LayerViewerDialog,SIGNAL(rejected()),SLOT(on_LayerViewer_closed()));

    //hack to remove the first Tab created by the qt designer
    this->ui->tabWidget->newTab();
    this->ui->tabWidget->removeTab(0);

    //Add Undo/Redo To Toolbar
    QAction* undo = pm->getUndoAction(this);
    undo->setIcon(QIcon(":/Toolbar/Undo.ico"));
    undo->setShortcut(QKeySequence::Undo);
    this->ui->mainToolBar->insertAction(this->ui->actionUndoList,undo);
    QAction* redo = pm->getRedoAction(this);
    redo->setIcon(QIcon(":/Toolbar/Redo.ico"));
    redo->setShortcut(QKeySequence::Redo);
    this->ui->mainToolBar->insertAction(this->ui->actionCropArray,redo);

    //Create UndoViewerDialog and link it to the UndoGroup
    this->UndoViewerDialog = new UndoViewer(this);
    pm->setUndoViewer(this->UndoViewerDialog->getView());

    //TODO proper check if the grid is enabled after loading a project or change of array
    this->ui->actionShowGrid->setChecked(true);

    showMaximized();
}
开发者ID:WoT86,项目名称:FastArray,代码行数:56,代码来源:editor.cpp


示例11: showMaximized

void MainWindow::LoadSettings()
{
    // Window/dialog sizes
    if (mSettings->value(SETTINGS_WINDOW_MAXIMIZED, false).toBool()) {
        showMaximized();
    } else {
        resize(mSettings->value(SETTINGS_WINDOW_WIDTH, 800).toInt(),
               mSettings->value(SETTINGS_WINDOW_HEIGHT, 600).toInt());
    }

    ShowTypes *types = mUI.mResults->GetShowTypes();
    mUI.mActionShowStyle->setChecked(types->isShown(ShowTypes::ShowStyle));
    mUI.mActionShowErrors->setChecked(types->isShown(ShowTypes::ShowErrors));
    mUI.mActionShowWarnings->setChecked(types->isShown(ShowTypes::ShowWarnings));
    mUI.mActionShowPortability->setChecked(types->isShown(ShowTypes::ShowPortability));
    mUI.mActionShowPerformance->setChecked(types->isShown(ShowTypes::ShowPerformance));
    mUI.mActionShowInformation->setChecked(types->isShown(ShowTypes::ShowInformation));

    const bool stdCpp11 = mSettings->value(SETTINGS_STD_CPP11, false).toBool();
    mUI.mActionCplusplus11->setChecked(stdCpp11);
    const bool stdC99 = mSettings->value(SETTINGS_STD_C99, false).toBool();
    mUI.mActionC99->setChecked(stdC99);
    const bool stdPosix = mSettings->value(SETTINGS_STD_POSIX, false).toBool();
    mUI.mActionPosix->setChecked(stdPosix);

    // Main window settings
    const bool showMainToolbar = mSettings->value(SETTINGS_TOOLBARS_MAIN_SHOW, true).toBool();
    mUI.mActionToolBarMain->setChecked(showMainToolbar);
    mUI.mToolBarMain->setVisible(showMainToolbar);

    const bool showViewToolbar = mSettings->value(SETTINGS_TOOLBARS_VIEW_SHOW, true).toBool();
    mUI.mActionToolBarView->setChecked(showViewToolbar);
    mUI.mToolBarView->setVisible(showViewToolbar);

    const bool showFilterToolbar = mSettings->value(SETTINGS_TOOLBARS_FILTER_SHOW, true).toBool();
    mUI.mActionToolBarFilter->setChecked(showFilterToolbar);
    mUI.mToolBarFilter->setVisible(showFilterToolbar);

    SetLanguage(mSettings->value(SETTINGS_LANGUAGE, mTranslation->SuggestLanguage()).toString());

    bool succeeded = mApplications->LoadSettings();
    if (!succeeded) {
        const QString msg = tr("There was a problem with loading the editor application settings.\n\n"
                               "This is probably because the settings were changed between the Cppcheck versions. "
                               "Please check (and fix) the editor application settings, otherwise the editor "
                               "program might not start correctly.");
        QMessageBox msgBox(QMessageBox::Warning,
                           tr("Cppcheck"),
                           msg,
                           QMessageBox::Ok,
                           this);
        msgBox.exec();

    }

}
开发者ID:Drahakar,项目名称:cppcheck,代码行数:56,代码来源:mainwindow.cpp


示例12: QDialog

BeamDialog::BeamDialog(Beam &a_beam,QWidget *parent) :
    QDialog(parent),
    beam(a_beam)
{
    setupUi(this);
#if defined(Q_WS_S60)
    showMaximized();
#endif
    spanLength->setValue(beam.length());
}
开发者ID:tybor,项目名称:monodes,代码行数:10,代码来源:beamdialog.cpp


示例13: showFullScreen

void MainWindow::showExpanded()
{
#ifdef Q_OS_SYMBIAN
	showFullScreen();
#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
	showMaximized();
#else
	show();
#endif
}
开发者ID:MECTsrl,项目名称:ATCMcontrol_RunTimeSystem,代码行数:10,代码来源:mainwindow.cpp


示例14: defined

void MainWindow::showExpanded()
{
#if defined(Q_WS_SIMULATOR)
    showFullScreen();
#elif defined(Q_WS_MAEMO_5)
    showMaximized();
#else
    show();
#endif
}
开发者ID:Sainiharpreet,项目名称:IOT-HMI,代码行数:10,代码来源:mainwindow.cpp


示例15: settings

void MainWindow::LoadSettings()
{
	QSettings settings(QApplication::applicationDirPath() + "/config.cfg", QSettings::IniFormat);
	
	setGeometry(settings.value("mainWindow/geometry").toRect());
	restoreState(settings.value("mainWindow/windowState").toByteArray());

	if (settings.value("mainWindow/isMaximized").toBool())
 		showMaximized();
}
开发者ID:Nesles,项目名称:qsp,代码行数:10,代码来源:main_window.cpp


示例16: defined

void QmlApplicationViewer::showExpanded()
{
#if defined(Q_OS_SYMBIAN) || defined(MEEGO_EDITION_HARMATTAN)
    showFullScreen();
#elif defined(Q_WS_MAEMO_5)
    showMaximized();
#else
    show();
#endif
}
开发者ID:BGmot,项目名称:Qt,代码行数:10,代码来源:qmlapplicationviewer.cpp


示例17: showFullScreen

void QmlApplicationViewer::showExpanded()
{
#ifdef Q_OS_SYMBIAN
    showFullScreen();
#elif defined(Q_WS_MAEMO_5)
    showMaximized();
#else
    show();
#endif
}
开发者ID:pcacjr,项目名称:qt-creator,代码行数:10,代码来源:qmlapplicationviewer.cpp


示例18: main

int main(int argc, char * argv[])
{
    auto app = new QApplication(argc, argv);
    auto editor = new EspinaVolumeEditor(app);

    editor->showMaximized();
    app->exec();
    
    delete editor;
}
开发者ID:FelixdelasPozas,项目名称:EspinaVolumeEditor,代码行数:10,代码来源:Editor.cpp


示例19: showNormal

void UnixWindow::maximize()
{
    if (isMaximized())
    {
        showNormal();
    }
    else
    {
        showMaximized();
    }
}
开发者ID:Navlida,项目名称:Client,代码行数:11,代码来源:UnixWindow.cpp


示例20: login

void MainWindow::timerEvent(QTimerEvent *e)
{
    if(!e)
        return;
    if(e->timerId() == updateTimer && !loginStatus)
    {
        loginStatus = true;
        login();
        showMaximized();
    }
}
开发者ID:chikkupa,项目名称:BillingSoftware,代码行数:11,代码来源:mainwindow.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ showMinimized函数代码示例发布时间:2022-05-30
下一篇:
C++ showList函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap