0

I have UI file prepared using qtcreator.

I like to read values from QWidgets to python script.

This link shows how to link ui file to python script.

But I can't find the information for reading values from QWidgets to python script.

Say I like to read user's selected value in QSpinBox.

I used PyQT5 for Ui design.

batuman
  • 7,066
  • 26
  • 107
  • 229
  • please provide a [mcve] – eyllanesc Oct 26 '18 at 05:09
  • 1
    In general there are 2 methods to obtain the value of a widget, but that depends on each widget, for example in your case QSlider, if you want to obtain the value in synchronic form you must use the value() method; your_slider.value(), and asynchronously using the valuechanged signal that will be issued every time the value changes, for this you must connect it to a function that receives it. – eyllanesc Oct 26 '18 at 05:16

0 Answers0