PDA

View Full Version : QAbstractSlider with quint32 or quint64



RolandHughes
28th October 2014, 20:11
All,

Is there, perhaps in Qt Project or some other place a version of QAbstractSlider which uses quint32 or quint64. Somewhere this already has to be done. I would hate to waste a client's time re-inventing the wheel.

Thanks,
Roland

d_stranz
29th October 2014, 04:52
I think you may run into the problem that a slider's resolution is limited by the screen resolution. So unless you have a screen with billions of pixels in each dimension, using quint64 won't help because you'll only be able to position the slider to some pixel divisor of your range. You can always catch the slider's change signals and re-emit them with the position converted to your preferred type.

wysota
29th October 2014, 08:14
Is there, perhaps in Qt Project or some other place a version of QAbstractSlider which uses quint32 or quint64. Somewhere this already has to be done. I would hate to waste a client's time re-inventing the wheel.

What is the use case?