Responsive Ad Area

Share This Post

test

Adding QML file in MDI Subwindow

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();

}


Adding QML file in MDI Subwindow
Adding QML file in MDI Subwindow
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar