当前位置: 首页>>代码示例>>C++>>正文


C++ QMdiSubWindow类代码示例

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


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

示例1: qDebug

void FileNewController::react() {
   qDebug() << "Creating new window";
   EditSubWindow *newEditWindow = new EditSubWindow(&mdiMain);
   BufferRef buffer = bufferPool.getEmptyBuffer();
   newEditWindow->setBuffer(buffer);
   newEditWindow->show();
   QMdiSubWindow *subWindow = mdiMain.addSubWindow(newEditWindow);
   subWindow->setAttribute(Qt::WA_DeleteOnClose);
   subWindow->show();
}
开发者ID:d11,项目名称:Audo,代码行数:10,代码来源:FileNewController.cpp

示例2: setFilterDlg

void MainWindow::setFilterDlg()
{
    QMdiSubWindow *wnd = mdi->currentSubWindow();

    if (wnd)
    {
        DB2Window *w = (DB2Window*)wnd->widget();
        w->setFilter();
    }
}
开发者ID:Smitt64,项目名称:WoWSatat,代码行数:10,代码来源:mainwindow.cpp

示例3: showFormatString

void MainWindow::showFormatString()
{
    QMdiSubWindow *wnd = mdi->currentSubWindow();

    if (wnd)
    {
        DB2Window *w = (DB2Window*)wnd->widget();
        w->showFormatString();
    }
}
开发者ID:Smitt64,项目名称:WoWSatat,代码行数:10,代码来源:mainwindow.cpp

示例4: getCurrentImageWindow

ImageWindow* WindowService::getCurrentImageWindow()
{
    QMdiSubWindow* sw = _mdi->currentSubWindow();

    if(sw != NULL) {
        ImageWindow* imw = dynamic_cast<ImageWindow*>(sw->widget());
        return imw;
    }
    else return NULL;
}
开发者ID:detiq-t,项目名称:detiq-t_old,代码行数:10,代码来源:WindowService.cpp

示例5: SaveImage

void MainWindow::SaveImage()
{
  QMdiSubWindow *win = ui->mdiArea->currentSubWindow();
  if(win != NULL){
    CanvasWidgetContainer *wid = dynamic_cast<CanvasWidgetContainer*>(win->widget());
    if(wid != NULL){
      wid->SaveImage();
    }
  }
}
开发者ID:QtOpenGL,项目名称:bustamanprojects,代码行数:10,代码来源:mainwindow.cpp

示例6: initConvDist

void RadMainWindow :: initConvDist (void)
{
    RadarImageProc * rdConv = RadarImageProc::getRadarImage();
    if (!rdConv)
        return;
    ConvDistanceWidget * cW = rdConv->getCDistWidget();
    QMdiSubWindow * subCW = m_mdiArea->addSubWindow (cW);
    cW->show();
    subCW->setAttribute (Qt::WA_DeleteOnClose);
}
开发者ID:YuriyRusinov,项目名称:radius,代码行数:10,代码来源:radmainwindow.cpp

示例7: showStringsTable

void MainWindow::showStringsTable()
{
    QMdiSubWindow *wnd = mdi->currentSubWindow();

    if (wnd)
    {
        DB2Window *w = (DB2Window*)wnd->widget();
        w->showStringsList();
    }
}
开发者ID:Smitt64,项目名称:WoWSatat,代码行数:10,代码来源:mainwindow.cpp

示例8: QMdiArea

Workspace::Workspace(PreviewFrame* parent, const char* name)
    : QMdiArea(parent)
{
    previewFrame = parent;
    PreviewWidget *previewWidget = previewFrame->widget();
    setObjectName(QLatin1String(name));
    QMdiSubWindow *frame = addSubWindow(previewWidget, Qt::Window);
    frame->move(10,10);
    frame->show();
}
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:10,代码来源:previewframe.cpp

示例9: findMdiWindow

void CLogisticMainWindow::slotPrioritiesDictionary()
{
    QMdiSubWindow *msw = findMdiWindow("Приоритеты");
    if (!msw){
         showMdiWindow(CLogisticApplication::instance()->createPriorities(),
                       "Приоритеты",
                       QIcon(QString("data/picture/sidebar/priority.ico")));
    } else {
         msw->setFocus();
    }
}
开发者ID:dekalo64,项目名称:RLine,代码行数:11,代码来源:core_logisticmainwindow.cpp

示例10: slot3DMod

void RadMainWindow :: slot3DMod (void)
{
    qDebug () << __PRETTY_FUNCTION__;
    imageCreatorForm * icf = new imageCreatorForm (0);
    connect (icf, SIGNAL (imagesData(generatingDataPlus)), this, SLOT (slotGologramCalc(generatingDataPlus)) );
    QMdiSubWindow * subCW = m_mdiArea->addSubWindow (icf);
    connect (icf, SIGNAL (rejected()), subCW, SLOT (close()) );
    icf->show();
    subCW->setAttribute (Qt::WA_DeleteOnClose);
    //icf->exec();
}
开发者ID:YuriyRusinov,项目名称:radius,代码行数:11,代码来源:radmainwindow.cpp

示例11: setTabName

void PropLov::setTabName(const QModelIndex &index)
{
    QMdiSubWindow *subWindow = qobject_cast<QMdiSubWindow *> (this->parent());

    QString lovName = modelData(DBLOVXML::LOV, DBLOVXML::NAME,index).toString();
    QString id = this->dataId(index);

    this->setObjectName("PropLov::" + id);
    subWindow->setWindowIcon(qvariant_cast<QIcon>(index.data(Qt::DecorationRole)));
    subWindow->setWindowTitle(lovName);
}
开发者ID:roandbox,项目名称:raindrop,代码行数:11,代码来源:proplov.cpp

示例12: setupPlot

void viewGVpropertieslayout::actionAddGraph_triggered() {

    QCustomPlot * plot = new QCustomPlot;
    setupPlot(plot);

    QMdiSubWindow * mdiSubWin = viewGV->mdiarea->addSubWindow(plot);

    if (mdiSubWin != NULL) {
        mdiSubWin->setVisible(true);
    }
}
开发者ID:ajc158,项目名称:spinecreator,代码行数:11,代码来源:viewGVpropertieslayout.cpp

示例13: activeAxWidget

void MainWindow::on_actionControlPixmap_triggered()
{
    QAxWidget *container = activeAxWidget();
    if (!container)
        return;

    QLabel *label = new QLabel;
    label->setPixmap(QPixmap::grabWidget(container));
    QMdiSubWindow *subWindow = mdiArea->addSubWindow(label);
    subWindow->setWindowTitle(tr("%1 - Pixmap").arg(container->windowTitle()));
    label->show();
}
开发者ID:CodeDJ,项目名称:qt5-hidpi,代码行数:12,代码来源:mainwindow.cpp

示例14: pix

QMdiSubWindow *CustomMdiArea::addSubWindow(QWidget *widget, Qt::WindowFlags flags) {
    QMdiSubWindow *subwindow = QMdiArea::addSubWindow(widget, flags);

    QPixmap pix(16, 16);
    pix.fill(Qt::transparent);

    subwindow->setWindowIcon(QIcon(pix));
    subwindow->setOption(QMdiSubWindow::RubberBandResize, true);
    subwindow->setOption(QMdiSubWindow::RubberBandMove, true);

    return subwindow;
}
开发者ID:Nepta,项目名称:nixjdr,代码行数:12,代码来源:CustomMdiArea.cpp

示例15: updateTitle

void CodeEdit::updateTitle()
{
    QMdiSubWindow *sub = (QMdiSubWindow *)this->parent();

    if ( !rev->textChangedSinceSave ) {

        rev->textChangedSinceSave = true;
        sub->setWindowTitle( rev->getDisplayName() );

        //TODO: also update in shredTree UI
    }
}
开发者ID:ravelite,项目名称:basicEditor,代码行数:12,代码来源:codeedit.cpp


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