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

Cannot access methods of *ui widgets in defaultCodeModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 4.4.1
    • None
    • OS: ArchLinux

    Description

      I disable clangCodeModel Plugin and use defaultCodeModel for autoComplete.
      when i want to access widgets that sit in my ui file(for example: a pushbutton) autocomplete won't work properly.for example:

      #include "mainwindow.h"
      #include "ui_mainwindow.h"

      MainWindow::MainWindow(QWidget *parent)
      : QMainWindow(parent), ui(new Ui::MainWindow)

      { ui->setupUi(this); ui->pushButton->setText("d"); }

      when i type ui and "." and press CTRL+SPACE from keyboard, qtCreator converto "." to ">" and offer me pushButton, but when i press "." ide nor convert it to ">" and show any member function of pushButton like "setText()";

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            linarcx lin arcx
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes