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

"New C++ Class" dialog: More options and better guidance for QML integration, than just "Add QML_ELEMENT"

    XMLWordPrintable

Details

    Description

      Currently, the dialog only provides "Add QML_ELEMENT", which creates an instantiable QML type that's named after the C++ class.

       

      However, there are many other possibilities:

       

      It would be helpful for the dialog to provide more common options, as well as to prevent users from selecting invalid combinations, e.g.

      • A class with QML_ELEMENT must also have Q_OBJECT
      • A class with QML_VALUE_TYPE must also have Q_GADGET
      • QML_ELEMENT and QML_ANONYMOUS are mutually exclusive

      Attachments

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

        Activity

          People

            con Eike Ziller
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes