cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1169

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

Any one try build ADB ?

Читать полностью…

C++ & Qt

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)

Читать полностью…

C++ & Qt

Qml applications also tend to be more modern looking. I’m not sure you can do MDI for instance.

Читать полностью…

C++ & Qt

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.

Читать полностью…

C++ & Qt

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

Читать полностью…

C++ & Qt

You can post your job openings here.

Читать полностью…

C++ & Qt

Have you tried —verbose

Читать полностью…

C++ & Qt

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.

Читать полностью…

C++ & Qt

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.

Читать полностью…

C++ & Qt

this is truth. How can I make QML_ELEMENT compatible with Settings? Should I define some serialization/deserialization member functions?

Читать полностью…

C++ & Qt

the link contains anchor to particular line of code. Both links

Читать полностью…

C++ & Qt

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

Читать полностью…

C++ & Qt

https://doc.qt.io/qt-6/qtqml-syntax-objectattributes.html

Читать полностью…

C++ & Qt

Settings is QML, for sure. In C++ counterpart named QSettings.
QML code
C++ code

Читать полностью…

C++ & Qt

Is it possible to alias one of grouped properties in Settings?

Читать полностью…

C++ & Qt

Any one try build ADB ?

Читать полностью…

C++ & Qt

Do not waste your time coding Qwidgets. You will regret.
It will take 1 month to learn QML from beginners to advanced level.

Читать полностью…

C++ & Qt

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.

Читать полностью…

C++ & Qt

Qml supports Android. Forget qWidgets. It is obsolete technology and is suitable for desktop apps only. Use QML everywhere.

Читать полностью…

C++ & Qt

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.😓

Читать полностью…

C++ & Qt

There's an example in the repo for that too.

Читать полностью…

C++ & Qt

Imgui supports android natively

Читать полностью…

C++ & Qt

I actually haven't tried this, but it seems that it would work.

Читать полностью…

C++ & Qt

As the documentation states,

It cannot refer to objects declared outside of the scope of its type.

The type of the first property should also include the second property, so for some properties, this may work, and for some, it will not. For example, palette.button cannot be aliased, but font.pixelSize can.

Читать полностью…

C++ & Qt

This is relevant info. But as I remember I have only two level depth.

Читать полностью…

C++ & Qt

yes, I read. But in practice there are cases not covered in the manual.

Читать полностью…

C++ & Qt

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

Читать полностью…

C++ & Qt

Also to alias is about QML too, because I do not know C++-ish analogue of property alias

Читать полностью…

C++ & Qt

What properties? In QML or C++?
Bring forth an code example. Do you mean QSettings or what?

Читать полностью…

C++ & Qt

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. :)

Читать полностью…
Subscribe to a channel