[Qt-interest] How can I make a pushbutton be transparent?

Chandru... sekarwagmare at gmail.com
Wed Jun 17 06:46:39 CEST 2009


use
http://doc.trolltech.com/4.5/qt.html#WA_TranslucentBackground
this will be very use full ... if stylesheet makes your application slower..
try QPalettes and play with alpha value .


On Wed, Jun 17, 2009 at 7:21 AM, Kermit Mei <kermit.mei at gmail.com> wrote:

> Hello,comminity!
>
> I want to make some Widgets be transparent, but I don't know how to do
> it highly efficient. I want to run my program on ARM, and there may be
> many widgets.
>
> Except to make some Widget be transparent, I also need to add some
> back-ground pictures on them.
> If I setStyleSheet, will it make my program slowly? And how to write a
> transparent widget's style sheet?
>
> Is subclassing QStyle a better way to use style sheet to promote the
> efficience? Or other better ways?
>
> Thanks.
>
> Kermit
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090617/02c13407/attachment.html 


More information about the Qt-interest-old mailing list