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

QML Introspection of QDeclarativeItem derived classes fails in QtCreator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 2.4.0
    • Qt Creator 2.3.1
    • Quick / QML Support
    • None
    • Linux 64 bit

    Description

      Given the following classes:
      class A : public QDeclarativeItem

      {...};
      class B : public A {...}

      ;
      in a simple qmake project, the QML text editor and the QML designer do not show the QML Item properties for instances of B. This fragment:
      B

      { anchors.fill: parent }

      gives the error:
      'anchors' is not a valid property name.
      Activating autocompletion in the instance of B does not show any of the properties defined in A or QDeclarativeItem. The QDeclarativeItem properties are visible in instances of A.

      Attachments

        1. bug.tar.bz2
          19 kB
          Jos van den Oever
        2. bug.png
          26 kB
          Jos van den Oever
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            vandenoever Jos van den Oever
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes