Questions tagged [qdial]

QDial is a Qt class which provides a rounded range control.

QDial Qt class should be used to control a value within defined range. Its look can be imagined like a speedometer.

Official Qt documentation can be found here.

22 questions
6
votes
1 answer

Customize QDial with stylesheet

There are comprehensive examples for style sheets of QWidgets here. Unfortunately QDial is missing from the examples. Can I change the appearance (basically the color, border of the rotary knob) just by a stylesheet? In this article a new dial class…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
3
votes
1 answer

Custom QDial notch ticks with PyQt

Currently I have this custom rotated QDial() widget with the dial handle pointing upward at the 0 position instead of the default 180 value position. To change the tick spacing, setNotchTarget() is used to space the notches but this creates an even…
nathancy
  • 42,661
  • 14
  • 115
  • 137
3
votes
2 answers

How can I avoid wrap-around in the QDial control?

I have a QDial control, and I want/need to block the jump or wrap-around between the minimum and maximum values. I can not find anything in the documentation nor the properties. Is that possible at all?
3
votes
1 answer

How can I make my QDial react to a different mouse event than the one predefined?

I have a subclass of a QDial and I want to change the values by moving my mouse up and down. At the moment, the basic implementation allows you to do a circular movement with the mouse to change the values. But I'd like to change them by moving my…
IAmInPLS
  • 4,051
  • 4
  • 24
  • 57
3
votes
3 answers

PyQt4/Qt: Set orientation of QDial (minimum value at the top)

I'm using PyQt4 with Python 2.7 on Windows and for a music player, I decided to replace Phonon.SeekSlider with a QDial. My problem is, that the minimum value of a QDial is always at the bottom of the dial, but I want it to be at the top (value still…
Joe Bloe
  • 383
  • 5
  • 12
2
votes
1 answer

QDial set range from 0.00 to 10.00 to widget displays

I have a class that connects a Lcd display with a dial and when you rotate the dial you get values on the lcd like this #ifndef SLIDELCD_H #define SLIDELCD_H #include #include #include #include…
Sonicpath
  • 231
  • 4
  • 16
2
votes
2 answers

How Subclass QDial to Stop Moving from Min to Max?

I would like to subclass QDial, because when you're at min value, you can change value to max easily (by going down). Same problem from max to min. In order to do that, I know I have to subclass QDial. But I don't know where to start.
0xPunt
  • 313
  • 1
  • 4
  • 21
1
vote
1 answer

Modify Qdial with a QLabel

I have a QDial widget that I want to beautify the circular edge of this widget by adding a QLable as the following figure. However, I think this makes the QLabel the parent widget, and the QDial no further works! Below is also my simple code. from…
hamed baghban
  • 25
  • 2
  • 7
1
vote
2 answers

QDial ange per revolution

I'm trying to make an Application with PyQt5, Python 3.7.3 using a Raspberry pi4B and a 5 inch touch screen. The thing is that I need to make a QDial, but I want it to make more than one revolution if it goes from min range to max range. For…
1
vote
1 answer

How to increase the PyQt5 app.processEvents() queue depth?

I used PyQt5 to create a simple GUI, which - among other things - contain QDial widgets. I want to change the colour of a particular QDial, and the colour of a corresponding QLineEdit that displays the relevant value on QDial rotation. I designed…
Bart M
  • 697
  • 1
  • 6
  • 18
1
vote
3 answers

Disable QDial mouse clicks and change the needle

I have a QDial widget and I'm wondering if there is a way to disable mouse clicks on the dial. I only want to be able to set the value of the QDial by using setValue(). When a user clicks on the dial, I want nothing to happen instead of moving to…
coffeewin
  • 182
  • 3
  • 6
  • 26
1
vote
0 answers

Min/max defined in Qt Designer not set for QDial instance

I've defined parameters for the min/max of a QDial instance in Qt Designer like this (-100, 100, value=0): When I start the application, the min/max parameters seem to be not set - they are 0, 100: When I set them expicitely in code, it…
Valentin H
  • 7,240
  • 12
  • 61
  • 111
1
vote
2 answers

QDial change position indicator text

I use a QDial control for input time values in sec. How do I change the automatically added text that shows up in the middle of these dials? EDIT: They come from the QtCurve style.
user877329
  • 6,717
  • 8
  • 46
  • 88
0
votes
1 answer

Find if QDial was rotated clockwise or counter clockwise

Is there any way by which I can detect if QDial (with wrapped property set to true) was rotated clockwise or anticlockwise?
dev
  • 2,180
  • 2
  • 30
  • 46
0
votes
1 answer

QDial making notch values visible

I am using QDial in my program and have been trying to get the notch values visible in a QDial. Does any one have an idea on this. So far I have figured that I might be able to extend the QDial and put lables there for notches can some one assist me…
Tharanga
  • 2,007
  • 4
  • 32
  • 50
1
2