PDA

View Full Version : Issue with QSlider::setTickInterval procedure



Dhaval
16th September 2010, 10:58
Hi All,

Following code does not draw tick marks on slider control:


m_pSlider->setMinimum(-2147483648) ;
m_pSlider->setMaximum(2147483647) ;
m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...

But following works correctly:


m_pSlider->setMinimum(-2147483648) ;
m_pSlider->setMaximum(2147483646) ;
//Please note: 2147483647 is changed to 2147483646
m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...

While "int" data type range is: -2147483648 to 2147483647...

Is any one other guy facing the same issue...

Any help would be appreciated.

Thanks in Advance...