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

Make enums/flags of QtQuick types part of public API

    XMLWordPrintable

Details

    Description

      Sometimes it might make sense to interact with QML stuff directly from c++ and set some of the enum/flag properties from there. As those classes are not public, one would have to use private API which is not desirable. Or QMetaObject, which is not as type safe.

      Maybe these values (at least of more mature types) could be mirrored in a new public class/namespace specific to them so that one could more easily set the values from c++ side.

      I mean maybe something like:

      QObject* image = ...
      image->setProperty("fillMode", QtQuick::Image::Pad);
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes