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?



  • 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.



  • 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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.