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

Stylesheets : implement a way to revert to native on all properties.

    XMLWordPrintable

Details

    Description

      At the moment Qt Stylesheets have an "all or nothing" approach with some styles (for example on Mac), as setting some attributes will change the look dramatically from the native style.

      It is possible to selectively revert some of these attributes to default to get the native style back, for example:

      QPushButton

      { color: blue ; border-width: 1px; border-color: red; border-style: solid; background-color: red; }

      can be reset with :
      QGroupBox QPushButton

      { border: native; color: palette(button-text); background:none;}

      But it would be nice if all attributes could be reset somehow, perhaps with a "reset" or "default" value?
      Setting attributes such as
      padding, margin, font-size and font-family cannot currently be reset to native style.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            dettman Dean Dettman (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes