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. Hi Friends ,I am facing small Issue, Can u Help Out.....?

Hi Friends ,I am facing small Issue, Can u Help Out.....?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 466 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.
  • V Offline
    V Offline
    Vinay Kumar pusuluri
    wrote on last edited by
    #1

    I am using QtWidget Application.i want use QML application into QtWidget Application.
    For That i am using In QtWidget Application The control is QQuickWidget.In QQuickWidget
    I want to display the QML Application.
    For That what i did is....
    QQuickWidget *view=ui->quickwidget;
    view->setSource(QUrl("main.qml"));
    view->show();
    or
    ui->quickWidget->setSource(QUrl("main.qml"));

    In this it is Getting that main.qml(QML Application) is opening.but it is opening another Window.I dont want to open another window.
    I want to open the that QuickWidget control onlyyyyyyy...............plz help out to me...
    thanks

    JKSHJ 1 Reply Last reply
    0
    • V Vinay Kumar pusuluri

      I am using QtWidget Application.i want use QML application into QtWidget Application.
      For That i am using In QtWidget Application The control is QQuickWidget.In QQuickWidget
      I want to display the QML Application.
      For That what i did is....
      QQuickWidget *view=ui->quickwidget;
      view->setSource(QUrl("main.qml"));
      view->show();
      or
      ui->quickWidget->setSource(QUrl("main.qml"));

      In this it is Getting that main.qml(QML Application) is opening.but it is opening another Window.I dont want to open another window.
      I want to open the that QuickWidget control onlyyyyyyy...............plz help out to me...
      thanks

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @Vinay-Kumar-pusuluri said in Hi Friends ,I am facing small Issue, Can u Help Out.....?:

      In this it is Getting that main.qml(QML Application) is opening.but it is opening another Window.I dont want to open another window.
      I want to open the that QuickWidget control only

      Inside main.qml, your top-level item is probably Window or ApplicationWindow. Modify main.qml and replace the window with a Rectangle.

      See

      • http://doc.qt.io/qt-5/qml-qtquick-window-window.html
      • http://doc.qt.io/qt-5/qml-qtquick-rectangle.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      6
      • V Offline
        V Offline
        Vinay Kumar pusuluri
        wrote on last edited by
        #3

        Yes,It's Working ThankYou.....

        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