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

qmlRegisterType is not defined in QDeclarativeEngine header

    XMLWordPrintable

    Details

    • Commits:
      efc41eaa7224c33b5b5af7eae27c93c6748255bc

      Description

      Looking at the online docs here:
      http://doc.qt.nokia.com/4.7/qdeclarativeengine.html#qmlRegisterType

      Since qmlRegisterType is listed as related to QDeclarativeEngine it would seem logical to #include <QDeclarativeEngine> in order to be able to use the qmlRegisterType function. However, this is not the case. Instead, you must #include <qdeclarative.h>. This is not mentioned in the documentation. I actually had to grep the source code to figure this out!

        Attachments

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

          Activity

            People

            • Assignee:
              martjone Martin Jones (closed Nokia identity) (Inactive)
              Reporter:
              lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes