Questions tagged as 'pyqt'

2
answers

How to play audio with PyQt?

Is there any way to run an audio file with PyQt? Is it possible to do this only with PyQt or do you need to install another library?     
asked by 11.11.2016 / 13:48
1
answer

How to create buttons forward and back QUI PyQt4

Hello, I'm new to PyQt and I have a question, I need to create a program with several steps, or screens, where the user will do their processing on each screen and clicking 'next' to the next screen or if he wants to edit something earlier, it w...
asked by 23.10.2015 / 23:45
1
answer

How to repeat a call of a function of every X seconds in PyQt?

I'm developing a small application in Pyqt4 where I need to load the data into a table coming from a Webservice. This I was able to do quietly. But now, I need to update this every 1 minute. How can I do a repetition of a call to a function e...
asked by 11.11.2016 / 12:14
1
answer

How to make an input password in PyQt4?

To use a field similar to input of HTML in Pyqt4, I usually use QtGui.QLineEdit . But how do I make a field similar to input password, what is a specific field for entering passwords? Can you define the "asterisks" that...
asked by 26.10.2016 / 21:12
3
answers

AttributeError: 'QString' object has no attribute 'strip'

I'm doing a small application in Pyqt4 to understand the operation. In a given part, I'm using a callback function to display a QLabel text that is typed in QtextEdit . This text should be trimmed (remove spaces before and after...
asked by 14.10.2016 / 19:28
2
answers

How to disable a QLineEdit in Pyqt?

How do I disable a QLineEdit in Pyqt5? Example: inputUserName = QLineEdit(self) I would like to leave it disabled, same as Html , when we use the disabled attribute. Is it possible?     
asked by 26.07.2018 / 17:56
1
answer

How to block the resizing of a widget / window?

I'm setting a particular widget according to the size of the secondary monitor. This I was able to do perfectly. However, since I'm new to PyQt, I'd like to know how to block the resizing of the window. I mean, I want the user not to be ab...
asked by 17.10.2016 / 18:14
1
answer

How to set a Tray Icon (tray icon) in a PyQt application?

I'm still new to PyQt and would like to clarify a question: Is there any way to define a Tray Icon in a PyQt application? If so, how can I do it? I need to set some options on this tray icon. Can you do that too?     
asked by 11.11.2016 / 13:04
1
answer

Which component to use in PyQt4 to display records of an SQL query on the screen?

I'm developing a graphical desktop application in Python using PyQt4 (Qt Designer), my doubt is about which component to use to display on my screen frmTelaPesqAluno records of a SQL query, and how to use it? It is a component similar...
asked by 30.08.2015 / 20:46
1
answer

Call progress bar class from another file

I've been trying to find a way to do this, but I can not figure out how to do this, contains a progressbar in pyqt4, I want to call the class of the file passing as a parameter a title, something like: from modules import progressbar progr...
asked by 03.02.2017 / 15:16