re:"Do not waste yiur time coding Qwidgets. You will regret.". Just because you don't find a use for it, does not mean anyone who uses it will "regret".
These are just tools, use which ever works for your project. No need to dismiss a whole industry based on your personal opinion/experience.
re:"It will take 1 month to learn QML from beginners to advanced level.". That is hard to believe. It might be possible, but rare. Everyone is different. Some need weeks, some months, some years. Some never do get the hang of it)
Qml applications also tend to be more modern looking. I’m not sure you can do MDI for instance.
Читать полностью…Yes, widgets has never really been suitable for android. It works, but it looks like a desktop application (strangely skinned) squeezed into a really small screen. QML is much nicer.
Читать полностью…It's recommended to use QML for android development. It's more suited for touch-based devices.
See the docs as a starter: https://doc.qt.io/qt-6/android.html
Iirc you should use Qt Creator IDE with all Android development settings right to properly program for Android apps.
In the project you can use C++ as the backend and QML as the frontend.
I think I can define something like operator << (QDataStream)
, operator >> (QDataStream)
and the type of whole object will be convertible to QVariant
and it will be used in Settings
.
this is truth. How can I make QML_ELEMENT
compatible with Settings
? Should I define some serialization/deserialization member functions?
1000+ lines for a QML file is too much. However, you should be able to set an alias for viewer.renderer.cameraView
, but only up to two levels of depth, not more.
https://doc.qt.io/qt-6/qtqml-syntax-objectattributes.html#property-aliases
It cannot refer to properties inside a hierarchy with depth 3 or greaterЧитать полностью…
Do not waste your time coding Qwidgets. You will regret.
It will take 1 month to learn QML from beginners to advanced level.
Qt Widgets is a mature technology that gets constantly updated and improved.
I would not call it obsolete just because it doesn't work for some cases.
Qml supports Android. Forget qWidgets. It is obsolete technology and is suitable for desktop apps only. Use QML everywhere.
Читать полностью…these days I use cmake and Qt Widget developed an android app, but it always with multiple issues. I was so crasy, I think use Qt to develop android app just like wearing iron shoes to play basketball.😓
Читать полностью…As the documentation states,
It cannot refer to objects declared outside of the scope of its type.
palette.button
cannot be aliased, but font.pixelSize
can.
Читать полностью…
Have you read that manual? Your project at GitHub uses the same format.
You can use alias for any object or property, a group of objects
Also to alias
is about QML too, because I do not know C++-ish analogue of property alias
What properties? In QML or C++?
Bring forth an code example. Do you mean QSettings or what?
Welcome to the group, @garegin866! :-)
Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)