[Qt-interest] Styling slider via style sheets ( may be bug )

Wagner Sales wsales at gmail.com
Sun Oct 3 21:57:00 CEST 2010


Hi Scott,

The problem is not about Qxt or other library itself. All of them will
show the same problem when you are styling QSlider.

Regards,

Wagner Sales


2010/9/29 Scott Aron Bloom <Scott.Bloom at onshorecs.com>:
> Why not use Qxt?
>
> It's a great extension to Qt, is trivial to add on, and is very very
> lightweight... You can pick and choose what you want from it (GUI and
> core in your case)
>
> Scott
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Wagner Sales
> Sent: Wednesday, September 29, 2010 7:43 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Styling slider via style sheets ( may be bug )
>
> Hi all,
>
> This question aren't exactly about the QSlider class. Qt doesn't provide
> a range slider ( an slider with to handles ), then other libraries
> provides ( libqxt, CTK, and so on ). When I'm styling QSlider,
> everything works fine. But, If I try to style one of theses classes, the
> result aren't good. When the style are changing the groove and the
> handle, no problems occurs. The problem will comes when you try to
> change the add-page and sub-page. After take a look at the code and
> asked about to qxt developers, I think the problem cannot be solved in
> the class itself, because relies in the way Qt are drawing the
> controls/subcontrols. In attachment, I put an style to test and a
> screenshot with two sliders: common QSlider and a range slider. Since
> I'm not able to change this, can anyone suggest a workaround?
> Implement a proxy style? Re-implement the paintEvent on a sub-classed
> range slider? Of course, this questions are because I'm not feeling
> confortable in change Qt code itself.
>
> Best Regards,
>
> Wagner Sales
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list