PDA

View Full Version : QDial



mickey
17th June 2006, 22:03
HI, I see my the myDial arrow is set at postion as hours 7 (at startup); is it possible set it to midnight? thanks

Cesar
17th June 2006, 23:14
QDial myDial = new QDial(parent);
// Your min & max value settings
myDial->setValue((myDial->maxValue() - myDial->minValue()) / 2);

mickey
18th June 2006, 09:33
this set arrow to midnight, but isn't the the value 0; I connected a lcdnumber that shows value 90....

Cesar
18th June 2006, 11:23
Oh, so the problem is that you want your dial to be a kind of turned clockwise? So that its starting position was midnight and not 7 o'clock while the value set to zero?

mickey
18th June 2006, 12:01
Oh, so the problem is that you want your dial to be a kind of turned clockwise? So that its starting position was midnight and not 7 o'clock while the value set to zero?
I don't have to have a clock; simply: i'd like set arrow position and its value (why myDial at start up is on 7 o'clock? is it possible control this?)