[Qt-interest] How to override QApplication Style

Joseph Crowell joseph.w.crowell at gmail.com
Wed Oct 19 19:59:33 CEST 2011


On 10/19/2011 4:58 AM, Muthulakshmi Muthiah Subramanian -ERS, HCL Tech 
wrote:
> Hi,
> I am Creating a Custom Style ScrollBar For ListWidget,
> My application style also contains custom style scrollbar,
> If i set my listwidget with the custom style,
> The application custom style only gets applied,
> I cant override the application style with my style.
> Can i get any ideas,
> I am writing my style in drawcomplexcontrol function,
> I have checked, draw complexcontrol of application style is called,
> the patricular custom styleclass of widget's somplex control function is not called.
>
> Thanks and regards,
> MuthuLakshmi M S

Could you possibly use Qt SyleSheets instead in this instance? Seems 
that you only want to customize the appearance of scrollbars. Every 
element of a scrollbar's appearance can be customized with style sheets.

> ::DISCLAIMER::
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list