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. How can I combine C++(QtWidget) UI with QtQuick UI in the same app?
Forum Updated to NodeBB v4.3 + New Features

How can I combine C++(QtWidget) UI with QtQuick UI in the same app?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.0k 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
    Flavia
    wrote on last edited by
    #1

    Hi everyone ,

    QQuickWidget class was introduced with the advent of the new version of Qt 5.3 and works perfectly if the application runs on Windows / Linux but I noticed that the Android platform is not supported. I would like to know if anyone has faced this problem too and if there is an alternative to QQuickWidget that works on Android. What I am trying to do is to combine QML and C++ so I could open a new QtQuick interface from QtWidget form. I tried before QQuickWidget to use QWidget::createWindowContainer and QQuickView and also worked well on Windows but not on Android. Does anyone know if it will settle the subsequent versions or someone tried Qt 5.4 ?

    For example this project:

    http://qt-project.org/doc/qt-5/qtquick-quickwidgets-quickwidget-example.html

    works fine on Windows but on Android emulator it only appears the Window with LCD number and the second Window which contains the Qml and the QQuickWidget is empty.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasRicardo
      wrote on last edited by
      #2

      Hmm, i think the problem here can be the fact that Android can't handle multiple global windows. But the sample application tried to create two separate windows this can be the problem here.

      **Sorry for my english :)

      PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

      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