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

Code completion for function return types doesn't work reliably

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.8.1
    • Quick / QML Support

    Description

      E.g. When the following C++ function is exported to QML:

      QString doSomething();
      

      QtCreator can provide you a code-completion for all string operations. e.g. by doing doSomething()<Tab>

      If the same is done with a complex type it doesn't work:

      QQuickItem* doSomething();
      

      The expected behavior would be to list all operations/properties of a QQuickitem in the completion.

      If doSomething() is not a function, but a property, the completion works fine for some types e.g. QQuickItem, but also stops working when builtin-types or GADGETS are returned e.g. QRectF

      The behavior can already be tested using either: Qt.vector2d() or QQuickItem::childAt() from QML

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes