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

Widget declaration fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • Qt Creator 3.4.0-rc1
    • Qt Creator 3.3.0
    • All Other Issues
    • None
    • Qt 5.4.1

    Description

      Forwarded from QTBUG-43791

      Right click on project -> add new... -> Qt -> Qt Designer Form Class -> Choose... -> Template Widget -> Change classname to anything but "Form"


      Result in Qt 5.4.1:

      cpp:
      test::test(QWidget *parent) :
      QWidget(parent),
      ui(new Ui::Form)

      h:
      private:
      Ui::Form *ui;

      Result in 5.4.0:

      cpp:
      test::test(QWidget *parent) :
      QWidget(parent),
      ui(new Ui::test)

      h:
      private:
      Ui::test *ui;


      5.4.1 sets wrong variable names which results in "invalid use of incomplete type..."

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            dominik_fehr Dominik Fehr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes