Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt6.10.2 Source Compilation Error
Qt 6.11 is out! See what's new in the release blog

Qt6.10.2 Source Compilation Error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 474 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oliver Marie
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of MinGW are you using ?
      How did you install it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        Oliver Marie
        wrote on last edited by
        #3

        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"

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved