-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QML Pt. 3: Add support for retrieving deck track properties #3911
Conversation
Wait, wait, let's first merge the prerequisite PRs 😅 |
206b078
to
c4b33fa
Compare
7c1b3aa
to
f9111b0
Compare
Hmm, that sucks. Apparently |
Instead of wasting time with workarounds for outdated Qt versions I suggest to restrict QML support to Qt 5.15 and newer. Can we organize the code in a way that allows to exclude the QML components at build time if not supported? |
00b21fa
to
61dfc98
Compare
The last commit should fix the issue with no #ifdef'ed code, let's hope CI agrees. |
b6c7bb9
to
07af114
Compare
Can someone help me with the lambda? I have no idea why it doesn't work. It works on my machine and it's more or less copied from the Qt 5.12 documentation:
|
84a384b
to
7d999da
Compare
d208917
to
6c6f474
Compare
6c6f474
to
a37420e
Compare
If rebasing on #3924 avoids introducing temporary glue code then let's do it. |
a37420e
to
3196025
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Routing each individual signal through the proxy is error prone and smells like an anti-pattern to me. But I am not aware of a better solution yet.
These fine-grained, two-way data bindings get out of control and become unmaintainable soon, because you lose the notion of discrete states and their transitions. But that's a different topic that we cannot solve here ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this might not be the final version let's use it for the moment to get more experience how to handle dependent properties in QML properly.
Thank you all this prototyping work! I am well aware that this is often the most challenging phase of a project 😛 LGTM
This allows displaying track properties from loaded decks in the QML GUI. Roughly equivalent to
WTrackText
.Based on #3907.
Minimal working example:
Current state of the Demo skin (track on deck 1 has green track color):