[Interest] style sheet woes

Graham Labdon Graham.Labdon at avalonsciences.com
Fri Jun 14 12:33:46 CEST 2013


Hi
I have a style sheet that sets the background colour for QDialog -

QDialog {
    background-color: red;
}

My application has a QListWidget added from Designer and is created with its containing layout as the parent,
Upon selecting an element in the list I launch a dialog, but the style sheet is not applied to this dialog.
I believe that this is because the list widget is not created with my main window as a parent

I thought that by specifying the background colour in the style sheet that all dialogs (regardless of parent) would have the same background colour.

I would be grateful if someone could explain why this is not the case

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130614/ae87814e/attachment.html>


More information about the Interest mailing list