-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use Qt Quick Controls 2 & Qt Labs Platform #1984
Conversation
Qt Quick Controls 1 is desktop-oriented, which Tiled (widgets) already has covered. If Tiled Quick is supposed to be for touch devices, it is better off using Qt Quick Controls 2.
I have a bunch of changes to make. Can I just push them all to this branch? |
There's going to be a qml/ directory in tiledquick.
- Move QML files into qml/ - Moved Android-specific files into qml/+android so that they will be loaded automatically on Android by file selectors
This font will be used for icons.
Sorry for merging this so late. It's a great idea to switch to Qt Quick Controls 2, even on desktop I think. Thanks! I also like the changes you made for Android, though did you actually try if it still works? I'm wondering mainly about whether it can find the |
@mitchcurtis Note that I've now merged |
No worries. :)
I'm pretty sure I did, but this is going back too far for my memory. :D
Oh, good to hear! |
@mitchcurtis Btw, while I merged This is mainly because any change made to these classes should generally be covered by undo commands, and the editable wrappers can create these commands transparently. It would not be desirable to implement this in the base classes, even if they are derived from QObject. Because of the use of wrapper classes, there should actually be no need to still have the base classes derive from QObject, so I'll probably look at reverting that change sometime in the next weeks. Tiled Quick will then need to be updated to also use the wrapper classes to bind to properties. That in turn means the wrappers (and their dependencies) will need to be moved either to In any case it will be interesting to try if we can use these editable wrapper classes to add functionality to Tiled Quick. |
Oo... so then games like mine can start using just libtiled instead of having to build Tiled Quick as well? Either way, I'm curious how this will look for users of the Quick API.. it also reminds me that I haven't updated my tiled sub-module in too long... :x |
Hmm, that's an interesting question... actually the editable wrappers make no sense in a game, because you do not want the overhead of the undo commands when making changes to the data. So for that use-case the question remains whether it makes sense to keep the QObject derived base classes, or whether to add a "no undo system" option to the wrappers, or whether to write different wrappers altogether for use in games... If added as an option, it would probably be best to have it at compile-time for performance reasons. |
Qt Quick Controls 1 is desktop-oriented, which Tiled (widgets) already
has covered. If Tiled Quick is supposed to be for touch devices,
it is better off using Qt Quick Controls 2.
This bumps the minimum required Qt version for Tiled Quick to 5.10.