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
1
vote
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
  • 459
  • 2
  • 12
1
vote
1 answer

Qt 6 configure options failed

I want to build Qt 6 with prebuilt MySQL/OpenSSL libs to try out new features, but I have some issues with configure parameters. For example, I have such configure parameters: configure.bat -debug -static -static-runtime -confirm-license -opensource…
Hunter91151
  • 101
  • 9
1
vote
2 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
  • 2,798
  • 4
  • 23
  • 47
1
vote
1 answer

Is it possible to subclass QThreadPool for distributed processing?

QtConcurrent is extremely convenient as a high-level interface for multithreaded processing in my data-heavy/CPU-heavy application. The Qt6 upgrades vaguely referenced "Revamped Concurrency APIs" but I didn't see much change, except a reference to…
Phlucious
  • 3,366
  • 19
  • 50
1
vote
2 answers

Qt6 and Qt5 backward compatibility

Let's say I have Qt5 projects. Qt6 is released and I want to move my projects to it, but I want to have possibility to build my projects with Qt5 too. I know that Qt5 API is incompatible with Qt6. So my question is Qt6 API backward compatible with…
Igor Mironchik
  • 215
  • 1
  • 13
1
vote
1 answer

How to fix "no compiler can produce code for this qt version" in Qt6 beta?

I am eager to test the beta release of Qt6 on a Windows 10 machine. For the alpha version I have followed this tutorial by voidrealms and it worked. However, when I install the beta2 (6.0.0-202010220944), I cannot use it, as the kit is not…
scopchanov
  • 6,933
  • 10
  • 30
  • 56
0
votes
0 answers

Cannot automatically adjust cell height/width with Qtable

I am trying to create a QTTable with cells that adjust to fit their width/height in the table without adding scrollbars. I cannot get anything to work. The endgoal is to be able to have a slider to change the number of rows/cols dynamically and have…
0
votes
0 answers

How to install or update qt6 into centos 8?

How to install qt6 from source (offline installer) in centos .tar.gz file
0
votes
0 answers

Bazel rules for Qt6 on Linux: How to copy required libs?

I am working currently on an experiment to support Qt6 via Bazel. My code can be found here. On Linux with Bazel and GCC9 installed you can run my code via: git clone https://github.com/Vertexwahn/rules_qt6 cd rules_qt6 bazel run --config=gcc9…
Vertexwahn
  • 6,759
  • 6
  • 50
  • 78
0
votes
1 answer

Why is there no QtWebEngine in the Qt6?

Why there is no QtWebEngine in the Qt6? Is it depricated? Should I use a new widget?
mh taqia
  • 3,398
  • 1
  • 18
  • 32
0
votes
0 answers

Qt6 migration - UIC generated code fails to compile (connect slots) - updated

I'm trying to port mine project from Qt5 to Qt6. Mine problem is that UIC generated code looks like this: QObject::connect(SelectHome, &QToolButton::clicked, toQPSQLSettingUI, qOverload<>(&QWidget::selectHome)); MSVC2019 compilations fails…
ibre5041
  • 4,193
  • 1
  • 15
  • 28
0
votes
0 answers

Qt Quick3D: draw a 3D line between 2 points

I am using the new QtQuick3D from Qt6. I need to draw a line between 2 points, but didn't find a function dedicated for this. Therefore I decided to use a basic cylinder that I can scale and rotate. The scaling works as intended, but the rotation…
uro1012
  • 21
  • 2
0
votes
0 answers

QMetaType confuses two symbols with identical name but different namespace

Consider the following minimal example: namespace foo { struct MyStruct {}; } Q_DECLARE_METATYPE(foo::MyStruct) namespace bar { struct MyStruct {}; } Q_DECLARE_METATYPE(bar::MyStruct) // later on near the entry point of the…
Petr Mánek
  • 1,016
  • 8
  • 22
0
votes
0 answers

The specified module could not be found: QTJambi

I decided to use QTJambi for my first QT project. After reading Wiki, I started to install this library. Here is tree of my Qt\6.1.0\msvc2019_64\bin folder: C:\QT\6.1.0\MSVC2019_64\BIN │ androiddeployqt.exe │ androiddeployqt.pdb │ …
AdisAlagic
  • 124
  • 5
0
votes
1 answer

Convert HICON to QIcon in Qt 6

I'm trying to convert a HICON to a QIcon/QPixmap in Qt6. In older Qt versions there used to be a fromHICON function that made this conversion very easy. Unfortunately, they removed it in Qt6 so I tried to do it myself following this answer: HDC hdc…