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. How to create an empty QML document
Forum Updated to NodeBB v4.3 + New Features

How to create an empty QML document

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.1k Views 3 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by
    #1

    Hi,

    Here it says "We start with an empty document called ...". My question is how using Qt Creator 4.3.0 (Qt 5.9) to create an empty QML document as the example says?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Create a new project, and clear the content of the main.qml file before writing what you want based on the example you are currently working on.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      tomyT 1 Reply Last reply
      2
      • P Offline
        P Offline
        patrik08
        wrote on last edited by
        #3

        check pro file
        if inside the file is on:
        DISTFILES +=
        AAsnip.txt
        maintext.txt version_status
        you can see the new file to edit in qtcreator.. on console vi nano mc you can see all ;-)
        make an alias to edit pro file in your .bash_profile (depend os) vi ~/path/dir/xxx.pro file

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Create a new project, and clear the content of the main.qml file before writing what you want based on the example you are currently working on.

          tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by
          #4

          @SGaist

          Create a new project,

          Using what classes/files?
          I used Application -> Qt Quick Controls 2 Application but I think the statement meant something else by "We start with an empty document".

          mrjjM 1 Reply Last reply
          0
          • tomyT tomy

            @SGaist

            Create a new project,

            Using what classes/files?
            I used Application -> Qt Quick Controls 2 Application but I think the statement meant something else by "We start with an empty document".

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5

            @tomy
            One way is via
            alt text
            (it does insert some includes and item{}. easy to delete)

            Anyway, a empty QML file is just an empty text file.

            1 Reply Last reply
            3

            • Login

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