[Interest] style sheet woes

André Somers andre at familiesomers.nl
Fri Jun 14 12:45:16 CEST 2013


Op 14-6-2013 12:33, Graham Labdon schreef:
>
> 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
>
>
Did you try setting it as the application-wide style sheet?

André

-- 
You like Qt?
I am looking for collegues to join me at i-Optics!

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


More information about the Interest mailing list