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

ApplicationWindow "invalid property name"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 4 Posters 2.8k 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.
  • szboTMSS Offline
    szboTMSS Offline
    szboTMS
    wrote on last edited by
    #1

    Hi,

    I am experiencing an issue with the ApplicationWindow component. The problem is that the editor underlines any property that I set to the ApplicationWindow and says it has an invalid property name, even if the property exists (Like title, width, height, etc.). This also occurs when simply generating a base project. Does anybody know a solution except adding "disable-check M16" before every single property?

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      This has been fixed in Qt 5.7.1. A temporary workaround is to add

      import QtQuick.Window 2.2
      

      before the controls import. Sorry for the inconvenience.

      1 Reply Last reply
      0
      • CattisC Offline
        CattisC Offline
        Cattis
        wrote on last edited by
        #3

        I have the same problem, but importing QtQuick.Window 2.2 did not solve it for me... Here are my import statements:

        import QtQuick 2.7
        import QtQuick.Window 2.2
        import QtQuick.Controls 2.0
        import QtQuick.Layouts 1.0
        import QtQuick.Controls.Styles 1.4

        Am I missing something else?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Cygnus
          wrote on last edited by
          #4

          I have the same problem with Qt 5.15.2, in a basic QtQuick Application project, in the default code it gives you in a new project:

          56ce6e6f-5a46-4b91-bd2d-74dc4fdbd261-image.png

          I tried importing QtQuick.Window 2.2 instead (and every other version), but none of them work.

          The F1 help doc for Window says to import QtQuick.Window 2.15, and it says it contains all these properties:

          cd0401ce-67f8-481d-b618-b6329a21863b-image.png

          When I compile and run it on my Android emulator, it just produces a blank screen.

          e17c7cc5-c64b-4671-a696-349dfc8a2fca-image.png

          I'm new to Android development, and fairly new to Qt. So I'm trying to learn by creating this most simple, default, HelloWorld project, and it doesn't even work. I'm using Qt Creator 11.0.3. I need to use Qt 5.15.2, because that's the version the project I'm working on is using, so it's not my decision to use a later Qt version.

          So the first question is, how do I get this basic project to work?

          And the larger question is, why is the basic, built-in Qt project broken? And why are these errors inconsistent with the the help documentation?

          I'm extremely disappointed with how difficult it is to set up the simplest of projects in Qt. I thought it would be fun to learn Qt, but after struggling with it for many months, it is really a nightmare.

          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