Wilmort
Wilmort

Reputation: 294

Qt Stylesheet affects whole widgets

I have a problem about Qt Stylesheets and I am using Qt 5.6 on windows.(This was not exist in Qt 5.5.1) I use this code piece, this is a QLabel inside a QDialog.

ui.newGroupNameLabel->setStyleSheet("QLabel { color : black; }");

I also tried giving it a name usingQObject::setObjectName() and use an ID Selector to refer to it. But it still occurs.

It affects whole project. I mean that affecting other widgets. All the expand symbols change to plus sign. This QLabel is unrelated to this widget(below). Did anyone face with this problem?

enter image description here

enter image description here

Thanks in advance.

Upvotes: 0

Views: 233

Answers (1)

Wilmort
Wilmort

Reputation: 294

This issue is resolved in Qt 5.6.1 that will be released in few days.

https://bugreports.qt.io/browse/QTBUG-52230

Upvotes: 1

Related Questions