Questions tagged [qspinbox]

The QSpinBox class, part of the Qt framework, provides a spin box widget.

QSpinBox allows the user to choose a value by clicking the up/down buttons or pressing up/down on the keyboard to increase/decrease the value currently displayed.

147 questions
0
votes
1 answer

PyQt SpinBox always returning 0, unless previously set with setValue

I have a PyQt GUI using Python 2.7 and QT 4.7 that opens a dialog called by a pushbutton. I can pass values between the dialog and the main GUI just fine for the most part, until it comes to a QSpinBox in the dialog box. The class that defines the…
Bendustries
  • 71
  • 1
  • 3
  • 10
0
votes
1 answer

label displays sum of two QSpinBox (Python + Pyside)?

Could someone help me fix the code to display in the total column the sum of the two spinners 'Amount + Counter'. Currently the total label just displays the value of a single spinner. I need it to display the sum of both spinners. Any additional…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
0
votes
2 answers

how to approach a QSpinbox in other widgets?

I'm using Qt-desiger to make a GUI. For example I have a QSpinbox in a QCombobox in a Groubbox. How can i use SetValue for my Spinbox? how i have to "describe" the way to my Spinbox?
Hubschr
  • 1,285
  • 6
  • 18
  • 35
0
votes
1 answer

C++ adding two QSliders together?

I have two QSlider-s/QSpinBox-es. Got those working but not sure about the best way of adding the two together to output the total. Here is a picture of what I got:
0
votes
1 answer

pyqt QDoubleSpinBox adjusts always to integer

I'm using pyqt and have two QDoubleSpinBoxes which I use to define intervals. Typically those intervals are integer, e.g. degree Celsius. Depending on the use case I switch the range, stepsize, unit, etc. One case involves voltage and needs to be…
Ben A.
  • 1,511
  • 2
  • 11
  • 8
0
votes
1 answer

why QdoublespixBox can't show big numbers correctly

i have a problem with QdoublespinxBox i'm using Qdoublespinxbox as a delegate in col2, but when i have big numbes like 99999999999999999999999999999999 he can't show correctly , he shows me 1e+19 i have used this #include…
advseo32
  • 401
  • 1
  • 5
  • 15
0
votes
2 answers

PyQt4 QSpinBox value format

My objective is to use a QSpinBox to display the numbers from 0 to 9999 with the increasement of 1 using 4-digits format. I managed to set the Maximum value 9999 by using setMaximum command. But I can't seems to find a way to display the values in…
Chris Aung
  • 9,152
  • 33
  • 82
  • 127
0
votes
2 answers

How to do a custom range for a QSpinBox

Hi first time posting here. I searched and found how re-implementing the QSpinBox class allows for custom uses. However I am not sure if my needs are addressed in as much as what I found by re-implementing the validate method. I need a custom…
0
votes
1 answer

(Qt C++) Send int value from dialog to MainWindow?

I am quite new to C++ and Qt. I've gotten pretty far on my current project, but I've been putting off this one part. I have a pushbutton that opens a new dialog like this: void MainWindow::on_fillAll_clicked() { int yo; BlockSelect bSelect; …
mrg95
  • 2,371
  • 11
  • 46
  • 89
0
votes
2 answers

Qt C++: Connecting value changing in two spinboxes

I have a form with two spinboxes which must be connected because of aspect ratios for width and height. When I click on first spinbox and increase/decrease value, the other, second spinbox should change its value to be in ratio with the first…
user1257255
  • 1,161
  • 8
  • 26
  • 55
0
votes
1 answer

Qt SpinBox causes program to not respond

I have a QSpinBox that changes the coloring of an QImage on a scene. Everything works just fine. The color updates correctly. If i hold down the arrow on my QSpinBox everything works fine. I do have a problem when I hold down the the arrow on my…
user1216527
  • 145
  • 1
  • 1
  • 11
-3
votes
2 answers

How to set up QSpinbox increment bigger than +1?

In different areas of program i need to set different increment somewhere by +1 and somewehere by +2 or more. How to do this?
ratojakuf
  • 708
  • 1
  • 11
  • 21
1 2 3
9
10