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

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

XMLWordPrintable

    • b7f235edb (9.0), c4e15769e (11.0)

      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.

        For Gerrit Dashboard: QTCREATORBUG-28787
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes