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

QSS Stylesheet with QWidget background-color hangs the application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.5.3
    • Widgets: Style Sheets
    • None
    • macOS, Windows

    Description

      We have quite a large style sheet for our application which works well.

       

      Just for testing today we tried a stylesheet with the following content (no other styles were set):

      QWidget {
          background-color: #fafafa;
      } 

      If we use that, the call to

      gApplication->setStyleSheet(styleSheet);

      will not return even after minutes. It keeps working in a function }}
      static void updateObjects(const QList<const QObject *>& objects)
        Qt\6.5.3\Src\qtbase\src\widgets\styles\qstylesheetstyle.cpp

       

      Is this a known problem? How can this be improved?

      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
            stefanwoe Stefan Wörthmüller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes