Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved]QML is possible to carry on a QMainWindow?
Forum Updated to NodeBB v4.3 + New Features

[Solved]QML is possible to carry on a QMainWindow?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    flaviomarcio
    wrote on last edited by
    #1

    I have a project with several QMainWindow and want to include QML. is possible?

    Flavio Portela

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peppy
      wrote on last edited by
      #2

      This is going to be included in Qt 5.1

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flaviomarcio
        wrote on last edited by
        #3

        Really true, Qt5.1 does just that.

        Flavio Portela

        1 Reply Last reply
        0
        • F Offline
          F Offline
          flaviomarcio
          wrote on last edited by
          #4

          with Qt5.1

          void MainWindow::on_pushButton_clicked()
          {

          QQuickView *view = new QQuickView;
          qDebug()<<"flavio";
          view->setSource(QUrl("qrc:/qml/pathview/pathview-example.qml"));
          view->show();
          

          }

          Flavio Portela

          1 Reply Last reply
          0

          • Login

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