[Qt-interest] Custom controls

Yuvaraj R yuvaraj at ongobiz.com
Mon Oct 5 07:59:03 CEST 2009


try with this

QPushButton {
     border: 2px solid #8f8f91;
     border-radius: 6px;
     background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                       stop: 0 #f6f7fa, stop: 1 #dadbde);
     min-width: 80px;
 }

adjust border radius and min-width pixels sizes as per your requirements..


Thanks

Yuvaraj R


On Mon, Oct 5, 2009 at 10:59 AM, Nitin Mahajan <nitinm76 at yahoo.com> wrote:

> Thanks, I will look into the details. Is it even possible to change the
> rectangular button to a Triangular button?
>
> regards
>
> -Nitin
>
>
> *From:* Yuvaraj R <yuvaraj at ongobiz.com>
> *To:* Nitin Mahajan <nitinm76 at yahoo.com>
> *Cc:* qt-interest at trolltech.com
> *Sent:* Monday, October 5, 2009 10:08:24
> *Subject:* Re: [Qt-interest] Custom controls
>
> we can change by using style  sheets.
>
> Thanks
>
> Yuvaraj R
>
> On Mon, Oct 5, 2009 at 10:03 AM, Nitin Mahajan <nitinm76 at yahoo.com> wrote:
>
>> Hello!
>>
>> Is it possible to develop custom slider control by deriving from QSlider,
>> to change the look and feel of the slider control in an application.
>>
>> Also is it possible to change the look and feel of QPushButton?
>>
>> regards
>>
>> -Nitin
>>
>>
>>
>>      Get your preferred Email name!
>> Now you can @ymail.com and @rocketmail.com.
>> http://mail.promotions.yahoo.com/newdomains/aa/
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
>
> ------------------------------
>  Get your new Email address!
> <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/>
> Grab the Email name you've always wanted before someone else does!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091005/114379fc/attachment.html 


More information about the Qt-interest-old mailing list