[PySide] how to change font of single item in QComboBox

Sebastian Elner sebastian at risefx.com
Thu Jul 26 10:09:58 CEST 2012


Hi,

have you tried:

myFont=QFont("myFontFamily",italic=True)
comboBox.setItemData(0, myFont, Qt.FontRole)

Cheers

Sebastian


On 07/26/2012 07:42 AM, Frank Rueter | OHUfx wrote:
> Hi all,
>
> I'm trying to make the first item in my QComboBox italic but can't
> figure out how.
> Any ideas out there?
>
> Cheers,
> frank
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside


-- 
Sebastian Elsner    -    pipeline td   -   r i s e |  fx

t:  +49 30 20180300                 sebastian at risefx.com
                                           www.risefx.com

r i s e |  fx  GmbH
Schlesische Strasse 28 Aufgang B, 10997 Berlin
Geschäftsführer: Sven Pannicke, Robert Pinnow

Handelsregister Berlin HRB 106667 B




More information about the PySide mailing list