Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding QML file in MDI Subwindow

Adding QML file in MDI Subwindow

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 282 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Double A
    wrote on last edited by
    #1

    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();
    
     }
    
    jsulmJ 1 Reply Last reply
    0
    • D Double A

      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();
      
       }
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Double-A Take a look at https://doc.qt.io/qt-5/qquickwidget.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved