Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99421

Some Qt5 ui file does not compile with Qt6

    XMLWordPrintable

Details

    • All
    • efc959e966 (qt/qttools/dev) efc959e966 (qt/tqtc-qttools/dev) d3fcd1ee39 (qt/qttools/6.3) 77efdbfd62 (qt/qttools/6.4) d3fcd1ee39 (qt/tqtc-qttools/6.3) 77efdbfd62 (qt/tqtc-qttools/6.4)

    Description

      Strangely some Qt5 ui file which compiles good with Qt5, does not compiles with Qt6. For some reason ui.xxx.h file tries to connect with slot in parent class instead of derived class.

      Attached ui file example can be used to reproduce it:

      1: download unzip and qmake make using Qt5 qmake

      It compiles without problem.

      2: download unzip and qmake make using Qt6.2.1 qmake

      it gives following error:

      uic/ui_guicoorddlg.h:141:94: error: no member named 'formDone' in 'QDialog'
      QObject::connect(buttonOk, &QPushButton;::clicked, guicoorddlg, qOverload<>(&QDialog;::formDone));

      Attachments

        1. qtbug99421.zip
          5 kB
          Irfan Omair
        2. qtbug99421-1.zip
          3 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes