[Qt] QApplicationH and QApplication_setStyleSheet

zeljko zeljko at holobit.net
Sat Nov 7 09:54:07 CET 2009


On Friday 06 November 2009 20:07, Marcin Dębicki wrote:
> Probably stupid questions but I can't really find an answer.
>
> 1. How can I retrieve handle for my application so I can use
> QApplication_setStyleSheet? Application is created visually with Lazarus.

QAppllication_setStyleSheet(QCoreApplication_instance(), @WStr) where WStr is 
widestring which contains stylesheet code.

> 2. Second parameter for QApplication_setStyleSheet is stylesheet code,
> right? For example:
>
>  QMainWindow::separator {
>      background: yellow;
>      width: 10px; /* when vertical */
>      height: 10px; /* when horizontal */
>  }
>
>  QMainWindow::separator:hover {
>      background: red;
>  }
>
> Best regards,
> Marcin Dębicki




More information about the Qt mailing list