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

readOnly property now working in style sheet for QLineEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.7.2
    • Widgets: Style Sheets
    • None
    • Linux/X11

    Description

      According to the documentation (https://doc.qt.io/qt-6/stylesheet-examples.html) one can style a QLineEdit that is set to readOnly by the following style sheet:

      QLineEdit[readOnly="true"] { color: gray }

      But this does not work while the following variant (also found on the examples page) works:

      QLineEdit:read-only { color: gray }

      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
            mlangen Marc Langenbach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes