Hello,
how can i build a Double slider look like this:
For this exaple have i use two sliders. The problem is i can't move both slider to the left or right side.
If i subclassing a slider, how can i implement the second slider to do that?
Hello,
how can i build a Double slider look like this:
For this exaple have i use two sliders. The problem is i can't move both slider to the left or right side.
If i subclassing a slider, how can i implement the second slider to do that?
I think libqext has such a slider implemented.
http://dev.libqxt.org/libqxt/wiki/Home//page/index
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Thank you, i know that, but i don't want to use libqxt.
If it's to hard to subclassing a slider, can i shrink and grow my (two) sliders. Now is the question how can i shrink and grow the slider by the slider-value? Can you help me please?
Can you explain more what you mean?Now is the question how can i shrink and grow the slider by the slider-value?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
For example, now is the end of the left slider by 85% and the begin of the right too. If i move the left slider to 0 % should the left slider shrink and the right slider grow. You know what i mean?
resizing is not your problem, and it will have an effect you don't want - namely, when you change the size of the slider, it "sensitivity" will change, since the same range will be spread on a different length.
This is not the way to go about it.
You will have to create a custom widget that integrates to ranges on one slider.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I know how can i subclassing a slider to build my own widget, but i have no idea how can i integrate to ranges on one slider. Have you a little tip for me?
Why not look at how Qextlib have done it?Have you a little tip for me?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Thank you. Now i have copy the necessary code from the following files to my project:
qxtspanslider.h
qxtspanslider_p.h
qxtspanslider.cpp
qxtnamespace.h
qxtglobal.h
qxtglobal.cpp
All looks fine and now i want to clean-up my code. I cant do that because i understand the the meaning of that:
The relevant code can you find in qxtglobal.h and the class QxtSpanSlider. Can you explain my?
Another question is, how can i calculate the three ranges( before span, between span, after span)? All together must be 100%, e.g.
![]()
Bookmarks