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

Temporarily use integers with QDoubleSpinBox

Suppose I have a whole group of spinboxes, comboboxes, and whatnot, where I can set all sorts of variables for an application; a control panel, if you will. One of them is a QDoubleSpinBox *dec and, normally, I use it as it should be, with decimals,…
a concerned citizen
  • 787
  • 2
  • 9
  • 25
0
votes
0 answers

PyQt4: How to modify spinbox button direction to left and right

I found a C++ example which modifies the QSpinBox button direction as left and right, and it works. So I used PyQt-4.7 to imitate the example, but the button didn't show. Below is my code: from PyQt4 import QtGui, QtCore from PyQt4.QtGui import…
Irene
  • 1
0
votes
0 answers

how can i Polutate table Widget with combo Box and spinBox delegates

How can i have different delegates in different columns of a table. for instance, i want spinbox delegate in 1st column and combobox in 2nd column. i took an example of spinbox delegate from examples directories and tried to do the…
Srikanth Togara
  • 49
  • 2
  • 11
0
votes
1 answer

Qt QSpinbox and QPushButton to Arduino

I am a new leaner of Qt. Here's the project I am doing right now, I would like to adjust the LED luminosity from Qt's GUI. All I need are the QSpinBox to enter the value of luminosity(0~255) and the QPushButton to confirm the value and send this…
0
votes
2 answers

Qt4: How to change the default values (range, value, single step size) for QSpinBox for new instances?

I'm using lot of QDoubleSpinBoxes in my project (with Qt 4.8.0), and for all of them, I want the same range, single step size, value etc., which are different from the default values though. I wanted to ask: Is there a way to change these default…
kushy
  • 356
  • 2
  • 14
0
votes
1 answer

Kivy native spinbox number widget for insert number

I am making an app with Kivy and Python,is there a native way to create a field with a spinbox to select the number like in HTML for the tag input (type = "number") ?? I see there are checkboxes for Kivy but not this spinbox number; should I use a…
Coder
  • 83
  • 2
  • 10
0
votes
0 answers

QDoubleSpinBox + MousePressEvent

I am trying to implement my own version of the QDoubleSpinBox to have it act like in Maya with int/FloatFields so you can Ctrl+click+drag to change the value. I have this system working on a QLabel by setting the text from my value but then when I…
Goffer
  • 97
  • 1
  • 8
0
votes
1 answer

Getting a QDoubleDoubleSpinBox to display the (converted) value of a QSlider and still use setTracking(False)

I'm creating a ui for an animation tool I've written. The ui consists of a QDoubleSpinBox and a QSlider. I have connected the QSlider to the QDoubleSpinBox with functions to convert their values. I would like to keep the spinbox updating with the…
gonzalimator
  • 475
  • 1
  • 4
  • 9
0
votes
1 answer

Qt creator vs 2013 (error c1057)

iam trying to build this program but it give me c1057 fatal error . When i removed connect function (line 15) it worked well and i don't know the reason this is the message : C:\Users\Ahmed\Documents\Qt-App\SpinnerAndSliders\main.cpp:15:…
Ahmed Nabil
  • 41
  • 1
  • 2
  • 8
0
votes
0 answers

QTCreator Giving ListWidgetItems Multiple Attributes

So I'm using QTCreator to create a GUI for a project. I'm reading items from a file, and then those items are imported into a ListWidget with checkboxes next to each item. I was wondering if it's possible to have the checkbox along with a spin box…
Bob343
  • 1
  • 2
0
votes
1 answer

How to get steps and current value, after clicking on up/down control of QDoubleSpinBox?

My question is, how can I get the control of stepSize and "currentvalue" before "value" in the spinbox(I required double spinbox (QDoubleSpinBox)) gets incremented/decremented ? Note: I know, "valueChanged" signal is there but, slot gets called only…
Ashif
  • 1,652
  • 14
  • 30
0
votes
2 answers

Make QSpinBox react to mouse wheel events when cursor is not over it

I am using Qt 5.3.2 with Qt Creator 3.2.1 with MinGW 4.8.2 on Windows 7. I have a QSpinBox and can change its value with the mouse wheel only if the mouse is over the QSpinBox. If the mouse is not over the QSpinBox, scrolling the mouse wheel has no…
nwp
  • 9,623
  • 5
  • 38
  • 68
0
votes
2 answers

Qt QTableWidget QDoubleSpinBoxes/QSpinBoxes as elements accessing values by Iteration

I create a table with two rows and two columns: The second column contains spinBoxes as elements. The code is the following: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); myTable…
newandlost
  • 935
  • 2
  • 10
  • 21
0
votes
1 answer

Qt connecting a slider to a doublespinbox

this is the code I am using to convert the int of my slider into a double. void simMotionControl::on_horizontalSlider_speed_valueChanged(int value) { value = double (value/100); //i set the range of the slider from 0 to 10000 …
theChef613
  • 127
  • 1
  • 9
0
votes
1 answer

Stop highlighting and cursor appearing when program changes value of QDoubleSpinBox

Is it possible to make it so that if I set a value for a spin box within the program it does not highlight the changed field, or add a cursor. I have included the code for some of the slots below, which controls a minimum and maximum field and…
1 2 3
9
10