last month I read the «qt6book-with-frontpage» to learn qml developing, in order to practice so I start to develop the application with qml version, everything is ok in desktop, so I try to port it to android device, then it meet some questions that I can not resolve, so I switch to Qt QWidget and hope it can work well in the android devices. but now seems still have some issue need to resolve.
Читать полностью…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.
Читать полностью…
I have two qml files, which one be imported in another one, but when the application setup and running. it show that the one be imported can not found
Читать полностью…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Читать полностью…