Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7.2
-
None
Description
I am not sure if I miss something or if there are some bugs.
We are using an ApplicationWindow with some scripting:
ApplicationWindow { id: root [...] function test { [...] ... root.screen.height ... [...] ... (root.screen as Screen).height ... [...] } }
1. We are using `root.screen` because `Screen` (attached property) will only provide the primary screen and not the screen where the application is living. Is this intentional?
2. Using `root.screen.height` leads to a qml lint warning because it is a `variant`:
Warning: App.qml: Member "height" not found on type "QObject" [missing-property] ... root.screen.height ... ^^^^^^
3. Using `(root.screen as Screen).height` leads to a qml lint warning:
Warning: App.qml: Member "height" not found on type "QQuickScreen" [missing-property] ... (root.screen as Screen).height ... ^^^^^^
So it would be good to know how to solve the lint issue.
Attachments
Issue Links
- relates to
-
QTBUG-131125 [Regr. 6.7.3 -> 6.8.0] qmllint - Overlay
- Reported