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

694 questions
36
votes
14 answers

QT6: "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found."

I know that there is a great amount of answers regarding this topic, however none of them helped me. I'm using Ubunty 20.04 via Oracle VM Virtual Box and I faced exactly the same error as all other people. After building Qt6 source code using…
CuriousPan
  • 783
  • 1
  • 8
  • 14
12
votes
2 answers

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
  • 582
  • 4
  • 17
11
votes
5 answers

CMake cannot find packages within Qt6 installation

I am in the process of trying to build a project through CMake and I set environmental variable Qt6_DIR to the directory containing Qt6Config.cmake. However the build doesn't seem to be able to find any of the other dependencies it needs within the…
Jigwally
  • 111
  • 1
  • 1
  • 4
10
votes
3 answers

QtCore/QTextCodec not found in Qt 6

After upgrading to Qt 6.0, the compiler told me qzxing/src/QZXing.cpp:16: error: 'QtCore/QTextCodec' file not found qzxing/src/QZXing.cpp:16:10: fatal error: 'QtCore/QTextCodec' file not found #include
Haozhe Xie
  • 3,438
  • 7
  • 27
  • 53
8
votes
1 answer

Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) error

I was trying to follow a Qt tutorial but I get this error: Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) which I don't understand, my code seems fine enough so I believe there is a problem with my .pro file or with Qt…
LuisDSS
  • 83
  • 7
7
votes
2 answers

PySide6: Signals not included in typing files? (QtCore.pyi etc.)

Consider the following minimal working example: #!/usr/bin/env python3 from PySide6.QtCore import QTimer from PySide6.QtWidgets import QLabel, QApplication app = QApplication() label = QLabel('Label') x = 0 def timeout(): global x x += 1 …
Philipp Burch
  • 869
  • 1
  • 7
  • 16
6
votes
2 answers

Cannot find Qt6 installation?

Trying to follow the install instructions from a GitHub page: https://github.com/TASEmulators/fceux I went through with installing Qt6 and when I do the following this happens: mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DQT6=1 …
Dugongue
  • 81
  • 1
  • 5
6
votes
2 answers

Port QRegExp::exactMatch() in Qt6

I'm porting a Qt5 application to Qt6. I want to move away from Qt5CoreCompat module of Qt6 as soon as possible. My problem is with QRegExp class which should be replaced with QRegularExpression class. Most patches are relatively trivial but how can…
anjanik012
  • 149
  • 3
  • 11
5
votes
2 answers

How do I use QT6 Dark Theme with PySide6?

Simple demo application I am trying to set the theme to dark. I would prefer a code version (non QtQuick preferred), but only way I see for Python is with a QtQuick config file, and even that does not work. from PySide6 import QtWidgets from PySide6…
CasualDemon
  • 5,790
  • 2
  • 21
  • 39
5
votes
0 answers

QVariant::value() fails to convert unless QVariant::fromValue() has been called previously. Is this expected behaviour?

Using Qt 6.2.1 with Microsoft MSVC 2019 under Windows. Given this function to load a list of unsigned ints from persistent settings: QList get(QSettings& settings, QString& key) { QVariant v {settings.value(key)} return…
Gustavo Q
  • 61
  • 5
5
votes
2 answers

Using GraphicalEffects in PySide6

I am using PySide6 and am trying to use the GraphicalEffects module. As per documentation here: https://doc.qt.io/qt-6/qtgraphicaleffects5-index.html I am doing: import Qt5Compat.QtGraphicalEffects The error I am…
Aaron
  • 759
  • 1
  • 7
  • 15
5
votes
2 answers

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
  • 4,282
  • 7
  • 41
  • 82
5
votes
2 answers

How to convert QList to QSet in Qt 6

I am porting my application to Qt 6 and as I am reading documentation I see that classes are cleaned up a lot, QList and QVector are unified, QStringList is now alias to QList and so on. But now this gave me one problem. In my code (which…
dosvarog
  • 694
  • 1
  • 6
  • 20
5
votes
1 answer

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…
user123445151156
  • 331
  • 2
  • 10
4
votes
1 answer

Unknown CMake command "qt_standard_project_setup" on Raspberry Pi

I am trying to get Qt6 working on my Raspberry Pi 4 B 2GB. It's running Ubuntu 22.04. I installed all necessary packages with qt6-base-dev and any dependent packages (build-essential, cmake and so on) But I can't get QT to work with it. I keep…
RedBox
  • 133
  • 9
1
2 3
45 46