Questions tagged [qt6]

For questions specific to version 6 of Qt.

Qt6 was released in late 2020 and features some incompatibilities with the Qt5 release.

See: , , , etc.

Differences from Qt5


References

58 questions
10
votes
1 answer

Qt6 and Multimedia module

As I can see in Qt6 no more Multimedia API. Am I right? Is it correct that in Qt6 for such simple task as playing sound I should look at third-party libraries now?
Igor Mironchik
  • 215
  • 1
  • 13
4
votes
0 answers

Qt6 imports with qtcreator 4.13+

Qt6 supports importing QML modules without specifying the version number. Example: Qt5: import QtQuick 2.0 Qt6: import QtQuick where Qt6 will just choose the newest version of the module. My problem is, that the current version of qtcreator does…
user8408080
  • 2,298
  • 1
  • 7
  • 17
4
votes
0 answers

Qt6 Android CMake project fails to find Qt component "Core"

I have a problem when I create a new QtQuick project with Qt6 android with CMake. The CMake fails immediately after the creation of the project: CMake Error at CMakeLists.txt:28 (find_package): Found package configuration…
3
votes
1 answer

qt qml Object already has a QQmlContext

I want get json file from local and send it to QML using this: #include #include #include int main(int argc, char *argv[]) { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) …
Tryliom
  • 695
  • 1
  • 7
  • 31
2
votes
1 answer

How to display text and image in a scrollable list?

I have a page where I want to put text separate by image in a scrollable list to test Qt, but if I want to do that, I must hard define the Y of each image and text but I don't know how to get that by the good way to have the exact Y I must assign.…
Tryliom
  • 695
  • 1
  • 7
  • 31
2
votes
2 answers

How to compile qtimageformats?

The recently released Qt 6.0.0 has changed the distribution of the qtimageformats. Thay are no longer prebuilt and have to be built locally. I checked out the QT git sources as described here. git clone git://code.qt.io/qt/qt5.git cd qt5 git…
vookimedlo
  • 920
  • 8
  • 22
1
vote
1 answer

Qt 6.1.0 MinGW Include ERROR with “__imp__ZN13QStateMachine…”

Here I'm using Qt Creator and today when I tried to compile this code it happened to cause some errors. code: #include "mainwindow.h" #include #include #include #include #include…
String Max
  • 13
  • 3
1
vote
1 answer

How to resize and areo snap frameless windows qt6

Im designed a form in qt designers I also make my program frameless with using Qt::FramelessWindowHint and Qt::WA_TranslucentBackground currently I coded drag windows manually in my program in this way bool Qt6Gui::eventFilter(QObject* obj, QEvent*…
sanab3343
  • 171
  • 10
1
vote
1 answer

QT6 Protocol "ftp" is unknown

I have projects that have to use FTP for file transfers. And all the projects are created with Qt 6.0.2. The problem is, I can't upload any files to my FTP server. I tried it with Qt 5.15.2 and it all works fine, but whatever I try, I just couldn't…
ka ra
  • 11
  • 2
1
vote
1 answer

Qt Creator: how to create Qt6 project?

I have installed Qt 6.0.3 and 6.1.0. And I want to create Qt 6 Quick project. I start Qt Creator, click "New", "Qt Quick Application - Empty", "Choose...". Then I type the name of my project and click "Next". On the "Build System" step I select any…
Andrey Epifantsev
  • 688
  • 1
  • 5
  • 17
1
vote
0 answers

How to determine if application is running on X11 platform on Qt6?

I am working to port a Qt5 application to Qt6. Since Qt X11 Extras module is removed in Qt6 and I have to check if the platform is X11, how do I do that? This is what the current implementation is using. if (QX11Info::isPlatformX11()) { …
anjanik012
  • 87
  • 2
  • 10
1
vote
1 answer

Errors with Customized ScrollBar Sizing Porting Qt 5.15 QML to Qt 6.0.2 QML

I am transitioning a GUI from Qt 5.15 QML to Qt 6.0.2 QML but an error has occurred in ScrollBar behavior. I have discovered the issue with MacOS 10.15.7 and I don't know where it exists elsewhere. I create a minimal custom ScrollBar and attach it…
Steve
  • 3,711
  • 22
  • 45
1
vote
1 answer

Q_PROPERTY must be fully defined error in Qt 6

With Qt 5 it was possible to use code like this: // Test.h #include #include class LanguageModel; class Test : public QObject { Q_OBJECT Q_PROPERTY(LanguageModel*, ...) public: }; // Test.cpp #include…
Hyndrix
  • 3,750
  • 7
  • 32
  • 67
1
vote
1 answer

Crosscompile qt6 for raspberry pi 4

I have read this qt6 doc, so I start to play with this, but maybe the docs leaks some infos and the configure step fails quickly with this error: CMake Error at cmake/QtBaseConfigureTests.cmake:21 (message): Failed to compile architecture…
matzrm
  • 43
  • 2
  • 10
1
vote
1 answer

How to create DropShadow effect in QML with Qt6?

In Qt5 this was easy with using DropShadow. But in Qt6 the module QtGraphicalEffects is removed. Is there any trick, workaround or maybe new way in Qt6 to create drop shadow around some component?
1
2 3 4