Adding QML file in MDI Subwindow



  • Hi Developers! I'm trying to add some qml source file in MDI Subwindow that when I clicked the button we will show subwindow in MDI Area and the display will be the QML source file. Can I possibly add some qml in my MDI Subwindow? . I highly appreciate any kind of answer, suggestion and idea regarding this matter, Thank you.

    This is my sample code in adding subwindow in MDI Area, Where can I insert the code for adding qml source file?

     void MainWindow::on_action_Weather_triggered()
     {
    
    subwindow3 = new QMdiSubWindow(mdiArea);
    widget3 = new QWidget(subwindow3);
    widget3->show();
    subwindow3->setWidget(widget3);
    subwindow3->resize(500,300);
    subwindow3->setWindowTitle("Weather");
    subwindow3->setAttribute(Qt::WA_DeleteOnClose,false);
    mdiArea->addSubWindow(subwindow3);
    subwindow3->hide();
    
    mdiArea->setActiveSubWindow(subwindow3);
    subwindow3->show();
    
     }

  • Qt Champions 2018


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.