Solved is there good way to realize this CustomWidget?
-
is there good way to realize this CustomWidget?
-
Very difficult to answer this question ? What you would like to do ? Can you explain more ?
-
the picture is from photoshop.
and simply say, it's a custom slider-bar, with gradient color and the color is changing while moving the slider. -
- Write custom widget
- Re-implement paintEvent(..) method
- Write drawing instructions using QPainter to draw your slider.
-
thanks.
is there any good demo?
and QPainter is enough to do this? no need to use QGraphicsView?
and i want to make it a custom widget which can be registered into Qt Disigner and then it can be used as Qt intrinsic widget. -
Can you look at the examples present in the Qt installation directory ?
e.g <QtInstallDir>/Qt5.11.0/Examples/Qt-5.11.0/widgets. -
yeh, i have it , and i dont know is there any demo that like this custom widget
-
You will not get example exactly what you want. You can look at the examples on how they are drawing custom widgets. Also you can look at store Custom Widgets
You need to look at examples & do things on your own.
-
thank you.but woops, i am using Windows.
-
i am using Windows.lol
Did not understand your last comment. What do you mean by I'm using windows ? How is it related here ? & what is the context of 'lol' ?