Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16475

Code generated for a new "Qt Designer Form Class" contains old module names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • Qt Creator 4.0.2
    • All Other Issues
    • Mac OS X 10.11.5, Qt Creator 4.0.2, Qt 5.7.0

    Description

      1. Activate the option "C++ -> Qt Class Generation -> Use Qt Module Name in #include directive"
      2. Create a new Qt Designer Form Class via "File -> New File Or Project -> Qt -> Qt Designer Form Class"

      The generated header file includes QWidget as <QtGui/QWidget> instead of <QtWidgets/QWidget> even though Qt4 is not even installed.

      When in addition I activate the option "Add Qt Version #ifdef for module names", the code does not compile since QT_VERSION is of course not defined at that point. The generated modules names on the other hand are correct.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            kampfgnom Niklas Wulf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes