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

Non intuitive "New C++ Class" wizard, may create non-compiling code.

    XMLWordPrintable

Details

    Description

      Found during package testing.

      Invoke new C++ class wizard and go to "Define Class" page. Do the following:
      1. Check "Include QWidget"
      2. Uncheck it now, so that the page looks like on the beginning.
      3. Choose now "QWidget" as a base class. Notice, that "include QWidget" checkbox stays unchecked. Finish the wizard.

      The project doesn't compile, since there is missing include of QWidget.

      Why we provide all these checkboxes?

      Anyway, what is the goal of creating a class derived from e.g. QWidget without including the base class header???

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            jkobus Jarek Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes