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

Some Qt5 ui file does not compile with Qt6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.2.1
    • Build tools: uic
    • None
    • Windows

    Description

      Strangely an existing simple ui application which compiles good with Qt5 does not compiles with Qt6 stating connected slot is not available. Generated ui_xxx.h for some reason tries to connect slot in parent class instead of child.

      Attached ui file can be used to test it

      1: download unzip and qmake make using command prompt using Qt5 qmake. it compiles well.

      2: qmake and make unzipped code using Qt6.2.1 it complains 
      uic/ui_guicoorddlg.h:141:94: error: no member named 'formDone' in 'QDialog'
      QObject::connect(buttonOk, &QPushButton;::clicked, guicoorddlg, qOverload<>(&QDialog;::formDone));

       

      Attachments

        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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes