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

It would be nice if child widget inherits all parents property with css.

    XMLWordPrintable

    Details

    • Commits:
      qtbase 7293200ace12f4870b87bb6a1f5a22ef53bf52cd

      Description

      Whenever css is defined it changes inheriting properties of parent widget even if a widget has no rule in stylesheet.

      It would be nice to have a mechanism which can let child widget to inherit all parents property if there is no stylesheet rule for child widget.

      
      #include <QtWidgets>
      
      
      int main(int argc, char *argv[])
      
      {
          QApplication app(argc, argv);
      	app.setStyleSheet("  ");
            QLabel *w = new QLabel("some text");
            QPushButton *pb = new QPushButton("text", w);
            w->setFont(QFont("Arial", 45));
            w->resize(400, 300);
            w->show();
          return app.exec();
      }
      
      
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                samuelnevala Samuel Nevala
                Reporter:
                qtcomsupport Qt Support
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes