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

No code completion for elements from .ui file in CMake project

    XMLWordPrintable

Details

    • b7f235edb (9.0), c4e15769e (11.0)

    Description

      1. Create a new Qt Widgets Application using build system CMake.
      2. Open the project's file mainwindow.ui in Design mode.
      3. Drag a Push Button onto the Window preview.
      4. Open the project's file mainwindow.cpp.
      5. In the ctor of MainWindow, add the line:
        ui->
        

        and wait for the proposal popup.
        There will be no such popup.

      When using qmake instead of CMake, the proposal popup will appear and show "pushButton".

      Found and tested by Squish test tst_designer_autocomplete.

      Attachments

        Issue Links

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

          Activity

            People

              cadam Cristian Adam
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes