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. Right way to dynamically create qml windows
Forum Update on Monday, May 27th 2025

Right way to dynamically create qml windows

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 762 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.
  • A Offline
    A Offline
    Avedis Zildjian
    wrote on 4 Apr 2017, 07:34 last edited by
    #1

    Hi.
    I'm working on a Qt application and I need to create windows dynamically. Each window consists of QObject-based c++ backend and qml-based interface. Each window needs to be connected to the bunch of signals emitted by core classes. Current solution is to derive window from QQuickView, connect signals to it and load qml using setSource(). Is it a right way or there is a better way? Is it better to use one QQmlEngine for all windows (and use this engine as parent for every window) or create new engine for each new window?

    1 Reply Last reply
    0

    1/1

    4 Apr 2017, 07:34

    • Login

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