Questions tagged as 'pyqt4'

1
answer

Problem loading QTableWidget

I want to load the data of a table, the problem arises when I press the button it throws me the following error:    C: \ Users \ framework \ Downloads \ Python \ PyQt> python new.py   TypeError: loadData () takes 0 positional arguments but 2...
asked by 02.10.2017 / 15:22
1
answer

Set the active window in a QmdiArea

I have a mdiArea to which I add several windows (of the class QWidget ): self.mdiArea.addSubWindow(self.win_ts) self.mdiArea.addSubWindow(self.win_vt) self.mdiArea.addSubWindow(self.win_norm) By default, the last window add...
asked by 13.05.2017 / 18:27
1
answer

Make a pushButton close a Qdialog

Clicking on QPushButton gives the following error: Traceback (most recent call last): File "listageneral.py", line 59, in adios self.close() AttributeError: 'Ui_Dialog' object has no attribute 'close' This is the code: impo...
asked by 05.10.2017 / 19:48
1
answer

Make it change QLabel

I am practicing with PyQt and I have done an exercise that prints on the console which button I press, then I wanted to change it so that it appears in QLabel , pro gives me an error    File "call.pyw", line 30, in b1_clicked    ...
asked by 06.10.2017 / 17:46
1
answer

Group widgets vertically and horizontally in a layout

I'm doing a framework in python and Qt, and I have a question. Let's see if with some help I can solve it. My question is this: when making a layout I want some buttons to form a vertical layout and others a horizontal layout, so the screen w...
asked by 28.07.2017 / 11:23
1
answer

call a code with a button in Pyqt

I'm working with Pyqt and I have my window with 3 buttons. The first and second buttons I want to give them shares. The actions that I need is that they initiate other codes.   link There are both programs. Pantalla.py is the pyqt and I need th...
asked by 02.11.2017 / 18:13
1
answer

Save file with QLineEdit data using getSaveFileName

I am writing an application using pyqt4 and python 3 . The data entry is by QLineEdit , mainly, and QTextEdit , the data is operated and the results are shown in other QLineEdit . On the monitor works well. Now I w...
asked by 02.07.2017 / 19:57
0
answers

WebViewer or QWebBrowser for QT4

I am currently using QtextBrowser to show me the text of a url in a window. The problem is that with QTextBrowser I do not load the images of the url, only the text. I have observed that in QT5 QwebBrowser is used, but the problem arises beca...
asked by 07.11.2018 / 12:14
0
answers

Converting .ui to .py from PyQt4 for Python 2.7 generates me error

This is the error that leaves me when I try to convert it. I have searched the Internet, but I can not find any solution to my problem. I am learning to work with PyQt and if I do not convert it I can not move forward. If someone can help me, I'...
asked by 13.09.2018 / 22:34
0
answers

QSpinBox range assignment

I have to define a QSPINBOX in pyqt, where the values taken by the QSPINBOX each time the ValueChanged () signal returns is that of a defined vector. For example: vector = [10, 15, 3, 20] In other words, the QSPINBOX in this case...
asked by 28.08.2018 / 16:18