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. Invalid property name "title"
Forum Updated to NodeBB v4.3 + New Features

Invalid property name "title"

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 4 Posters 1.5k Views 2 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.
  • D Offline
    D Offline
    dalishi
    wrote on last edited by dalishi
    #1

    Hi im trying the qt tutorial but got this invalid property name "title" error. Although the program is successfully compiled and running OK. Should I worry about this warning? im using Qt5.15 on Ubuntu20.
    Screenshot from 2022-08-12 12-26-07.png

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

      Hi,

      QML is not a compiled language like C++ (this has changed a bit, see this article about the Qt Quick compiler old and new) hence the absence of compilation error.

      As for the warning you are getting, it is correct the ApplicationWindow type does not have a title property directly but it has through inheritance from Window. So it's likely a glitch from the code model.

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

      1 Reply Last reply
      1
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        ApplicationWindow has title. Simply ignore the warning in qt creator.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dalishi
          wrote on last edited by
          #4

          @SGaist @JoeCFD thanks for the explanation.

          1 Reply Last reply
          1
          • S Offline
            S Offline
            seyed
            wrote on last edited by seyed
            #5

            So, the solution is ?....
            I have many instance of this problem.
            For example, try to import StateMachine as DSM just like document done. Many wrong error about random properties of State and DSM.State will be emitted every where!

            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