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

CPP function description as a hint in QML

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.15.1
    • Quick / QML Support
    • None
    • All

    Description

      Let's say I have a method in CPP like this with a description

      //! This is my test function
      Q_INVOKABLE void test(QString q, QString b);

      and I invoke the method in QML like this

      TestClass.test("String1", "String2")

      Now, If I hover my mouse over `TestClass.test`, the Qt Editor just says `Function`

       

      Visibility of comments on mouse hover would have been more helpful for referring to the same code in the future or for someone new who would like to understand the code. Else its pretty difficult in QML side to repeatedly go and check the CPP part 

      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
            chilarai chilarai mushahary
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes