Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123909

QRect as argument of C++ function cannot be parsed by qmllint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.0
    • 6.5.5
    • QML: Compiler
    • None

    Description

      for example

          Q_INVOKABLE void setImageArea(const QRect& area) {
              qDebug() << "setImageArea area:" << area;
          }
      

      will give warning like

      Warning: Main.qml:90:21: Could not compile function setImageArea: type QRect for argument 0 cannot be resolved [compiler]
              MyConstants.setImageArea(area)
                          ^^^^^^^^^^^^
      

      please see the attached demo

      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
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes