Qt 6.11 is out! See what's new in the release
blog
Qt6.10.2 Source Compilation Error
-
Hello
I'm having a problem building a C++ Qt GUI on windows with the Desktop Qt 6.10.2} MinGW 64-bit kit.
When I include the QListWidgetItem class, I get the following build error in Qt's source code
C:\Qt\6.10.2\mingw_64\include\QtCore\qabstractitemmodel.h:129: error: call of overloaded 'totally_ordered_wrapper(NULL)' is ambiguous In file included from C:/Qt/6.10.2/mingw_64/include/QtWidgets/qabstractitemview.h:10, from C:/Qt/6.10.2/mingw_64/include/QtWidgets/qlistview.h:9, from C:/Qt/6.10.2/mingw_64/include/QtWidgets/qlistwidget.h:8, from C:/Qt/6.10.2/mingw_64/include/QtWidgets/QListWidgetItem:1: C:/Qt/6.10.2/mingw_64/include/QtCore/qabstractitemmodel.h: In constructor 'constexpr QModelIndex::QModelIndex()': C:/Qt/6.10.2/mingw_64/include/QtCore/qabstractitemmodel.h:129:67: error: call of overloaded 'totally_ordered_wrapper(NULL)' is ambiguous 129 | constexpr inline QModelIndex() noexcept : r(-1), c(-1), i(0), m(nullptr) {}Any suggestions? Thanks in advance
-
Hi and welcome to devnet,
Which version of MinGW are you using ?
How did you install it ? -
Hi, thanks for helping me
I'm using the version that came bundled with my Qt installation.
Looking at 'Qt/Tools/mingw1310_64/build-info.txt' it says "version : MinGW-W64-builds-5.0.0"