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

[REG 4.9 -> 4.10] No code completion for elements from unsaved .ui file

XMLWordPrintable

    • 524cdf54bc8996ba2d7bbae1c61acb3e0b86f77a (qt-creator/qt-creator/4.10)

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

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

      6. Save mainwindow.ui.
      7. Repeat step 5.
        Now the popup appears and it contains the Push Button.

      Creator 4.9 shows the right proposals without saving the .ui file project, regardless of whether it was built with libclang 7 or 8.

      Found by Squish test tst_designer_autocomplete.

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

            kosjar Nikolai Kosjar
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes