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. Generate qml file from QQmlApplicationEngine which is added some new UI object (Rectangle, Button,...)
Forum Updated to NodeBB v4.3 + New Features

Generate qml file from QQmlApplicationEngine which is added some new UI object (Rectangle, Button,...)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 376 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.
  • V Offline
    V Offline
    VoLinhTruc
    wrote on last edited by
    #1

    As the same idea in thí topic:
    https://forum.qt.io/topic/135075/quiloader-can-load-an-ui-file-into-a-qwidget-but-how-to-save-qwidget-to-ui-file/4?fbclid=IwAR1oQsIGm-s0TR9gv-eGXbFSJSP9xwQxs0ZiLNol77VNv30U-53PDEXmCFw

    We can load UI from qml file by using QQmlApplicationEngine, but after added some UI object (Rectangle, Button,...) to QQmlApplicationEngine, how to save QQmlApplicationEngine which has new UI object to new qml file?

    Thank you in advance.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Are you dynamically creating the objects & attaching to existing window ? engine does not have any method to store qml. You need to store in a file on your own.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      V 1 Reply Last reply
      0
      • dheerendraD dheerendra

        Are you dynamically creating the objects & attaching to existing window ? engine does not have any method to store qml. You need to store in a file on your own.

        V Offline
        V Offline
        VoLinhTruc
        wrote on last edited by
        #3

        @dheerendra
        Thank you so much,
        I also thought about doing that manually,
        but actually I'm don't want to do something that Qt did well :D.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kishore Ravikumar
          wrote on last edited by
          #4

          Is it possible to dynamically create QML Rectangle/Image/Item in sperate plugin and attach to existing QtQuick Window. This Rectangle/Image must be like overlay on top of the window. Is this possible on EGLFS platform. Thanks in Advance!

          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