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

QML Style documentation should show that style needs to imported first

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-130792
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes