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

Add QMimeType as a QML value type?

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • None

      I wonder if we should.

      OTOH it's strange that it's not obvious how a user is supposed to construct a mime type even in C++. The only easy thing is to detect the mime type of an existing file. But if we want a value type in QML, we'd need construction syntax like Qt.mimeType("text/plain") or something, which is also silly. (Qt namespace being a kitchen sink for all possible JS type constructors)

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes