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. what differences between .qml file and qt design form file?
Forum Updated to NodeBB v4.3 + New Features

what differences between .qml file and qt design form file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 519 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.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    I new for Qt, I created two Qt projects, the first one named 'QtExample_1' use the 'Qt widgets Application' template, the second named 'QtExample_2' used the 'Qt Quick Application' template, In both projects, I found the differences between the two projects:
    In the QtExample_1 project, I found the Forms Directory, there is a mainwindow.ui file in the Forms Directory; in the QtExample_2 project, I found the Resource Directory, there is a qml.qrc file in the Resource Directory and the qml.qrc file includes a main.qml.
    it seems the main.qml file and the mainwindow.ui file has the same function which to display UI, now I have some question:
    1.what different between .qml file and qt design form file?
    2.can the .qml file and qt design form file transform each other?

    thanks a lot!

    jsulmJ 1 Reply Last reply
    0
    • P Princein

      I new for Qt, I created two Qt projects, the first one named 'QtExample_1' use the 'Qt widgets Application' template, the second named 'QtExample_2' used the 'Qt Quick Application' template, In both projects, I found the differences between the two projects:
      In the QtExample_1 project, I found the Forms Directory, there is a mainwindow.ui file in the Forms Directory; in the QtExample_2 project, I found the Resource Directory, there is a qml.qrc file in the Resource Directory and the qml.qrc file includes a main.qml.
      it seems the main.qml file and the mainwindow.ui file has the same function which to display UI, now I have some question:
      1.what different between .qml file and qt design form file?
      2.can the .qml file and qt design form file transform each other?

      thanks a lot!

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Princein Take a look at https://doc.qt.io/qt-5.12/qtqml-index.html
      QML is JavaScript based language to create graphical user interfaces. It is interpreted at runtime (like JavaScript).
      The designer form files (*.ui) are used for widget based applications (see https://doc.qt.io/qt-5.12/qtwidgets-index.html). Those contain the description of the graphical user interface and use XML. These files are used during compilation time to generate C++ code which is then compiled.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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