Using Qt CSS to set own Q_PROPERTY(QFont)

Posted by Kamil Klimek on Stack Overflow See other posts from Stack Overflow or by Kamil Klimek
Published on 2010-03-19T08:02:06Z Indexed on 2010/03/21 8:41 UTC
Read the original article Hit count: 322

Filed under:
|

Hi there. I'm using Qt 4.6.2 and i have problem with QCSS. I have own Q_PROPERTY(QFont myFont READ myFont SET setMyFont). I want to change it with QCSS but it doesn't work. I've tried using normal font syntax but it doesn't work. I've also tried few other combinations like:

qproperty-myFont: font(serif 20 1 0) font(serif 20 bold) QFont(serif 20 1 0) QFont(serif 20 bold) QFont(bold 20px serif)

etc.

© Stack Overflow or respective owner

Related posts about qt4

Related posts about qt