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

QML Style documentation should show that style needs to imported first

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.8.1, 6.9.0 FF
    • 6.8
    • Documentation
    • 038e33346 (dev), 2b82ea929 (6.8)
    • DaVinci 107

      https://doc.qt.io/qt-6/qtquickcontrols-styles.html#using-styles-in-qt-quick-controls

      The example shows only the style being imported. It does not mention though that it HAS to be imported before any other QtQuick.Controls. stuff if there is any. 

      If you do import QtQuick.Controls before, the style gets messed up, with some controls following the imported style, and some don't, which is not easy to diagnose for the user.

      A better example might be if it showed the Controls.Material imported first, and then maybe a comment "// all other imports need to follow after the style impoert" or some such.

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

            safiyyah Safiyyah Moosa
            madwinter Marcus Tillmanns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes