View Full Version : QDial in Qt4.6 is without needle?
raedbenz
23rd May 2010, 16:14
Hello,,
how can i get Qdial widget with the needle instead of a notch as in http://doc.trolltech.com/4.3/widgets-sliders.html ?
Thanks
tbscope
23rd May 2010, 17:18
Not sure what you mean, but maybe this?
http://doc.qt.nokia.com/4.6/qdial.html#notchesVisible-prop
raedbenz
23rd May 2010, 21:12
Not sure what you mean, but maybe this?
http://doc.qt.nokia.com/4.6/qdial.html#notchesVisible-prop
hello,
the link u sent me displays the Qdial with a needle as a pointer.
but uf u try to use QDial you will get http://img27.imageshack.us/img27/2678/qdial.th.png (http://img27.imageshack.us/i/qdial.png/)
Uploaded with ImageShack.us (http://imageshack.us)
tbscope
23rd May 2010, 21:45
That's controlled by the style.
raedbenz
23rd May 2010, 22:07
Ok,,,is there a way to change it to needle style??
i am after something like speedometer, any ideas where/how to get/do it??
Thnaks
raedbenz
25th May 2010, 08:22
any hints for speedometer style widget???
thanks
Hi
I have been looking to change the QDial as well. But according to this post about the appearance change, it can not be done (at the moment)
http://labs.trolltech.com/blogs/2009/03/31/a-new-face-for-qdial/
Cheers
aamer4yu
16th July 2010, 07:47
You can look into previous code of Qt and copy the code.
You will need to override the paintEvent.
norobro
16th July 2010, 13:24
From the linked blog:
Old styles like motif and windows classic will still get the old looks because that’s what they are… old
On Linux, use:
QDial::setStyle(new QMotifStyle)
wysota
16th July 2010, 14:57
QDial is more of an input widget rather than a display widget.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.