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
2
votes
1 answer

Dynamic convert qspinbox to qdoublespinbox

I have a qspinbox which use int values only. Also i have checkbox. If checkbox == 0, qspinbox must use int values only, but if checkbox == 1, qspinbox must use float values only. Is It possible? Maybe it is possible with qdoublespinbox?
2
votes
1 answer

Qspinbox value changed signal only for arrows changes

I need to identify when an user changes a value from an spinbox, but only if the change was made using the arrows (up or down according to step). I used the valueChanged signal, but this signal is emmited also when the user change the value by hand…
fsoto
  • 78
  • 8
2
votes
1 answer

Qt QSpinbox accepting '+' symbol after setting range

I have a QSpinbox whose range I am setting: QSpinBox *SpinBox = new QSpinBox; SpinBox->setRange(0, 100); However, I'm able to manually enter a + sign which is not reflected in my slot. connect (SpinBox, SIGNAL (valueChanged (QString)), this, …
george
  • 339
  • 3
  • 12
2
votes
1 answer

QListView items also showing the delegate editor even though the delegate is only added to the QTableView

I have a QListView and a QTableView both have the same QStandardItemModel. I have added a custom delegator to the QTableView. Now when I go to my QTableView and double-click an item I see the delegate editor widget, now if I go to my QListView and…
Sajal
  • 1,783
  • 1
  • 17
  • 21
2
votes
1 answer

How to use superscripts in QDoubleSpinBox suffix

I am trying to format part of a suffix in a QDoubleSpinBox as a superscript. Thus far I have tried the following: self.myDblSinBox.setSuffix("Nsm-4") and: self.myDblSinBox.setSuffix(r"Nsm$^{-4}$") but without succes. Is there anyone who…
Erik Thysell
  • 1,160
  • 1
  • 14
  • 31
2
votes
1 answer

How to set QSpinBox in a particular position of mainwindow.ui interface?

I know how to include QSpinBox in user interface by coding. QSpinBox *spinbox= new QSpinBox(this); Now I am looking for such a function by which I can set the QSpinBox in a particular position in user interface by giving coordinates value of this…
Sanakum
  • 179
  • 14
2
votes
3 answers

Value of spin box, just before it changes

I'm writig a code using qt libraries, in which I need to get the value of a spin box (by a signal) just before it changes. I've got: QSpinBox spinBoxWidth: QSpinBox spinBoxScale; I want to connect a signal from spinBoxWidth to spinBoxScale, so that…
A.3dhgi
  • 95
  • 2
  • 7
2
votes
1 answer

Add QSpinBox to a child of QTreeWidgetItem

I know how to add a QSpinBox to a QTreeWidgetItem : _spin_speed = new QSpinBox(); ui->treeWidget->setItemWidget(ui->treeWidget->topLevelItem(0) , 1 , _spin_sizePicture); But how to add a QSpinBox to a child of QTreeWidgetItem? By "child" I mean…
Pascal Goldbach
  • 977
  • 1
  • 15
  • 34
2
votes
1 answer

QT Designer: Connect QSlider and QDoubleSpinBox (both ways)

I'm new to QT Designer and am building interfaces for Maya. In most tutorials I've seen, setting signals/slots between two objects is pretty straightforward. I'm trying to setup a slider and spinbox to drive each other. If the slider is updated, the…
john
  • 408
  • 9
  • 30
2
votes
1 answer

QtQuick buttons under spinbox numbers

I want to have a spin box with little buttons under each number. Depending on which button is checked, the spinbox's step size will adjust according. For example, if the first button left of the decimal is selected the step size is 1 and if the…
ryan0270
  • 1,135
  • 11
  • 33
2
votes
2 answers

How to allow QSpinBox to insert when full?

I have tried searching for this problem in various ways, but have found nothing relevant, so perhaps there is a simple way around this which I simply haven't found. If so, my apologies in advance. I am using a number of QSpinBoxes in my app, and…
2
votes
1 answer

How to draw dash instead of null in QSpinBox?

I need to draw dash instead of null in QSpinBox. Also I need to make dash key pressing equalling null key pressing. How can I do this?
Ufx
  • 2,595
  • 12
  • 44
  • 83
2
votes
1 answer

PyQt4: QSpinBox strings

Is there a simple way to create a spinbox in PyQt4 whose varying values are strings? I want to create a spinbox which varies between 'low', 'medium' and 'high'. I've looked around and can't find anything that doesn't look very complicated. In…
ginny
  • 241
  • 4
  • 13
2
votes
1 answer

How to change text format of QDoubleSpinbox?

I want to enter temperature in my dialog in this format 12°15° For this i took QDoubleSpinBox widget but wasn't able to set its text like above. I tried following: degree_sign= u'\N{DEGREE SIGN}' temperature =…
Patrick
  • 2,464
  • 3
  • 30
  • 47
2
votes
2 answers

List of spinboxes, displaying only values changed

So, I have an extensive list of spinboxes (30) in one tab and a confirmation page on another tab. How can I can display only the names and values of those above 0 in the confirmation page? Not sure if it matters, I'm doing this in Qt.
1 2
3
9 10