So, is it possible to make subclass of QSlider that will draw "bended" slider?
So, is it possible to make subclass of QSlider that will draw "bended" slider?
Qt 5.3 Opensource & Creator 3.1.2
If OpenGLES will be unable to draw textured polygon(i never used Qtopia), an alternative approach it QSlider derived class that uses QPixmap::transformed or QTransform in paintEvent, but trolls bewares thats slow. If you want it to be quick without GL you can consider SVG vector images instead of pixmaps, but you would have to provide images in svg.
However, first thing to do is checking Gl capabilities on embedded systems.
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
You mean something like the application bar in OS X (or whatever it is called)? I don't see any problem in doing that. Of course you'll have to do some computations to determine hit region and such. But from what you said in the previous post (I finally understood it) you might use buttons instead of a slider. Should be waaaay simpler then.
I mean the thing at the bottom of this picture:
![]()
YYYYYYYYYYYEEEEEEESSSSSSSSSS!!!!!!!
So, finally we now know what is the problem. So is this foundamently QSlider or what? I really do not know where to start to dig in this problem ...
Qt 5.3 Opensource & Creator 3.1.2
I think this in particular is a custom widgetBut you may emulate it with tool buttons, for example...
So you told it's slider in meaning of whole control, not single image/button.
But... where shall it be "3d" as you mentioned at threads beginning?
Do you want buttons to scroll around?
I assume that you want this widget do draw partially transparently as on wysota's picture, so i think it can be i.e. scrollArea with custom paintEvent that omits background drawing.
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
On picture, the shape of this icon switcher is linear, i need it in circle form, like vynils or cds in jukebox.
Qt 5.3 Opensource & Creator 3.1.2
Shall this circle be planar (according to screen's surface) or somehow 3d?
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
Regarding to fact, that icons in upper part of circle will be smaller (like they are more distant) than the icons in lower part of circle and the selected icon is the biggest, i think it will look like 3d.
Qt 5.3 Opensource & Creator 3.1.2
So you want icons on sides skewed like they would be rotated?
It can be done without real 3d features with a bit of coordinates computation it can be emulated on transformed() pixmaps.
QSlider is not best base widget i think. I suggest a completely custom widget that inherits QWidget & QButtonGroup, you can add then a number of buttons & your widgets draws them in a 3d-like circle. It's reusable then...
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
Hmm, why QButtonGroup? Aha, QButtonGroup is not visual, this is good idea ...
Let me check now ...
Qt 5.3 Opensource & Creator 3.1.2
Bookmarks