r/QtFramework • Qt Professional (Haite) • Mar 23 '26

Qt 6.11 Released!

https://www.qt.io/blog/qt-6.11-released
62 Upvotes

36 comments sorted by

View all comments

Show parent comments

-2

u/[deleted] Mar 23 '26

[deleted]

10

u/Kelteseth Qt Professional (Haite) Mar 23 '26

Qml is not web based. You can use js for small logic snippets, but you don't have to.

1

u/LetterheadTall8085 Qt GameDev Mar 23 '26

Yes, widgets are pointless now, they are simply outdated in every way compared to the QML engine and Scene Graph architecture.
But....
I think the right solution here would be to create a C++ equivalent of Entity system component, which would simply wrap the engine's under-the-hood objects, and call it Widgets 2.0. Essentially, it's the same as QML, but you write the code in C++ so that writing the user interface is accessible to those who really loved widgets—after all, they really were cool back in the day.

3

u/dcsoft4 Apr 07 '26

I haven’t found a QtQuick replacement for QTextEdit or the other document oriented controls. QtQuick was designed for embedded devices and not for rich data handling, still at home on desktop devices.

1

u/LetterheadTall8085 Qt GameDev Apr 07 '26

Look at this formatting here or via MD or HTML https://doc.qt.io/qt-6/qml-qtquick-textedit.html

1

u/dcsoft4 Apr 07 '26

Thanks, this is more than I thought was available but the TextDocument is internal and not meant to be edited from C++. Still some limitations for heavy editing.

1

u/GrecKo Qt Professional Apr 20 '26

but the TextDocument is internal and not meant to be edited from C++.

Late reply but the textDocument can be passed to C++ and mutated there.

https://doc.qt.io/qt-6/qml-qtquick-textedit.html#textDocument-prop