That's what I already did. I am using the second variant.
On Wed, Nov 27, 2013 at 12:07 PM, Nurmi J-P <jpnu...@digia.com> wrote: > > On 27 Nov 2013, at 11:10, Philipp Kursawe <phil.kurs...@gmail.com> wrote: > > > I wonder if that is a bug: > > If I style a QComboBox's border with a "2px solid red" it looses its > style on the dropdown arrow, which happened to be flat styled (on Windows) > and then appears in 3D beveled style like old Win95. No more styles have > been applied to this combo via css. > > > > Whats going on here? > > > > Is there a way to bring back the "default" style (reset a style) on the > dropdown sub-control? > > > > Try using selectors [*] to avoid applying the border to all children of > QComboBox. > > These two have very different results: > > comboBox1->setStyleSheet("border: 2px solid red;”); > comboBox2->setStyleSheet("QComboBox { border: 2px solid red; }”); > > [*] > http://qt-project.org/doc/qt-5.1/qtwidgets/stylesheet-syntax.html#selector-types > > -- > J-P Nurmi > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest