ApplicationWindow "invalid property name"
-
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?
-
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.4Am I missing something else?
-
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:
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:
When I compile and run it on my Android emulator, it just produces a blank screen.
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.