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

QQmlContext setContextProperty providing property tooltip inconsistently

    XMLWordPrintable

Details

    Description

      When passing a context property to QML from C++ using QQmlContext setContextProperty, for some projects this results in the property names in QML allowing for autocomplete as well as tooltips when hovered. The property names are also changed to italicized blue text when complete.

      Also noticed is the fact that once a project that does this has been compiled, other unrelated projects open in QCreator will also be able to autocomplete and get tooltips for those properties in qml even if the first project has been closed, and is only cleared when QCreator is restarted.

       

      Attached is a project which does not result in tooltips.

      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
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes