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. Launching qml app from c++ app
Forum Updated to NodeBB v4.3 + New Features

Launching qml app from c++ app

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 777 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.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hello,

    I am wondering if it is possible to have a QML file run from a Qt C++ app without having to use QQuickView or something. I am trying to build a heads up display for my C++ app and I would like the hud to be in QML. How can I have the QML file run when a button in the C++ part of the app is clicked? Do I have to use QQuickView?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can run QtQuick in a QWidget, too, using QWidget::createWindowContainer(). "Link":http://qt-project.org/doc/qt-5/qwidget.html#createWindowContainer.

      (Z(:^

      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