[Interest] Question about style sheets.

Igor Mironchik igor.mironchik at gmail.com
Thu Aug 27 22:06:51 CEST 2015


Hi.

This problem I solved too.

I set following flags to QDialog

Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint

and

setAttribute( Qt::WA_MacAlwaysShowToolWindow, true );

and dialog draw regarding style sheet and always on top.

On 27.08.2015 20:46, Igor Mironchik wrote:
> Hi,
>
> I have global style sheet that I install to the instance of 
> QApplication. In that style sheet I have
>
> MyDialog
> {
>     background: #fff;
>     border: 15px solid #26a2dc;
>     padding: 25px;
>  }
>
> In MyDialog class I have following initialization line
>
> setWindowFlags( Qt::FramelessWindowHint | Qt::Popup );
>
> All elements in this dialog draws regarding global style sheet, but 
> border of dialog doesn't draw.
>
> What is the problem?
>

-- 
Best Regards,
Igor Mironchik.




More information about the Interest mailing list