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

Autocomplete does not offer local or member variables in method calls

    XMLWordPrintable

Details

    • Windows

    Description

      Autocomplete does not work when filling out parameters for method calls - at least local variables and class fields are not offered. Mostly, no autocomplete list is displayed at all.

      Steps to repeat:

      • Open "BasicDrawing" sample
      • Go to RenderArea::paintEvent and append an empty line at the end of the method
      • Try coding the following line using autocomplete for all symbols on the way. Type slowly.
        QPixmap myPixmap(pixmap);
        QPixmap is mostly autocomplete supported (if you don't type too fast). However, after opening the bracket after "myPixmap", the class member "pixmap" is not offered.
      • Alternatively, try coding
        QPixmap myPixmap(painter.clipBoundingRect().size().toSize());
        Again, QPixmap is recognized, but painter is not. After typing "painter." the methods are offered again.
      • Alternatively, try coding
        QPixmap myPixmap;
        QPixmap myPixmap; myPixmap.fill(painter.brush().color());
        When typing ".fill(pa" the symbol "painter" is not offered.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            asperamanca Robert Schimkowitsch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes