Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Creator/Designer/labs controls: Invalid property name "visible" (M16)
larry104 last edited by
I'm tinkering with qt designer for the first time so please bare with me - I tried various version of qt (5.6, 5.7_rc442, Creator 4.0) by installing the qt-opensource-linux-x64-5.x.run on a fresh Ubuntu 16.04 VM. I try to follow what Thomas did in his home automation demo (Qt Quick Controls 2 & Qt Quick Designer) - but somehow I can't even open the designer. All versions show the same error when creating a new qt labs control application - when starting the designer based on the auto-generated template it gives me the error: Cannot open this QML document because of an error in the QML file: Invalid property name "visible" (M16) - Also, all icons of the qt labs controls are red. - I would expect the template runs out of the box - do I miss anything here?
prokher last edited by
It is said that this will be fixed in the final release (https://blog.qt.io/blog/2016/06/03/qt-5-7-0-release-candidate-available/#comment-1197769) .
Bug report: https://bugreports.qt.io/browse/QTCREATORBUG-16371 .
Now, I am trying to patch installed version of Qt but still with no success.
prokher last edited by
Fixed by applying the patch AND importing
import QtQuick.Window 2.2manually before
import QtQuick.Controls 2.0. Frankly I don't know which one did the trick.
xCyborg last edited by
QtQuick.Controls 2.0did it for me thanks.
I'm on 5.7 RC but I bumped in this as well.
aqtuser last edited by
i have a problem with the qt quick designer that might be related. I can't add any QtQuick Controls 2.0 widgets in the designer. The design form stays empty but the corresponding code is added to the qml file. The qml application also starts and works without problems. It's just that the designer doesn't show anything.
I tried it with the 5.7RC release. Qt Creator version 4.0.2 on Windows 10 (msvc2015 64bit)
does anyone know what the problem could be?
Thomas Hartmann last edited by
There is an issue with the plugins.qmltypes file for QtQuick Controls 2.0. The issue will be fixed in the final release.
You can fix the plugins.qmltypes file manually: https://codereview.qt-project.org/#/c/161045/
Kalebros last edited by
@prokher It was the import; same problem here, but with the final 5.7 version and the Qt Creator 4.0.2. I've just made the import, and seems to work fine.
adsamcik last edited by adsamcik
@prokher Got this error on final Qt 5.7 but adding
import QtQuick.Window 2.2fixed it. Thanks.
Ilnur last edited by
@prokher Well done!
Your advice solved my problem!