本文整理汇总了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();
}
示例2: setFilterDlg
void MainWindow::setFilterDlg()
{
QMdiSubWindow *wnd = mdi->currentSubWindow();
if (wnd)
{
DB2Window *w = (DB2Window*)wnd->widget();
w->setFilter();
}
}
示例3: showFormatString
void MainWindow::showFormatString()
{
QMdiSubWindow *wnd = mdi->currentSubWindow();
if (wnd)
{
DB2Window *w = (DB2Window*)wnd->widget();
w->showFormatString();
}
}
示例4: getCurrentImageWindow
ImageWindow* WindowService::getCurrentImageWindow()
{
QMdiSubWindow* sw = _mdi->currentSubWindow();
if(sw != NULL) {
ImageWindow* imw = dynamic_cast<ImageWindow*>(sw->widget());
return imw;
}
else return NULL;
}
示例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();
}
}
}
示例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);
}
示例7: showStringsTable
void MainWindow::showStringsTable()
{
QMdiSubWindow *wnd = mdi->currentSubWindow();
if (wnd)
{
DB2Window *w = (DB2Window*)wnd->widget();
w->showStringsList();
}
}
示例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();
}
示例9: findMdiWindow
void CLogisticMainWindow::slotPrioritiesDictionary()
{
QMdiSubWindow *msw = findMdiWindow("Приоритеты");
if (!msw){
showMdiWindow(CLogisticApplication::instance()->createPriorities(),
"Приоритеты",
QIcon(QString("data/picture/sidebar/priority.ico")));
} else {
msw->setFocus();
}
}
示例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();
}
示例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);
}
示例12: setupPlot
void viewGVpropertieslayout::actionAddGraph_triggered() {
QCustomPlot * plot = new QCustomPlot;
setupPlot(plot);
QMdiSubWindow * mdiSubWin = viewGV->mdiarea->addSubWindow(plot);
if (mdiSubWin != NULL) {
mdiSubWin->setVisible(true);
}
}
示例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();
}
示例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;
}
示例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
}
}