Most voted "pyqt-4" questions
17 questions
Sort by count of
-
6
votes2
answers298
viewsHow to run audio with Pyqt?
Is there any way to run an audio file with Pyqt? You can do this only with Pyqt or you need to install another library?
-
4
votes3
answers220
viewsAttributeerror: 'Qstring' Object has no attribute 'strip'
I’m making a small application in Pyqt4 to understand how it works. In a certain part, I’m using a callback function to display in a QLabel the text that is typed in QtextEdit. This text should be…
-
4
votes1
answer676
viewsHow to input a password (password field) in Pyqt4?
To use a field similar to input HTML in Pyqt4, I use QtGui.QLineEdit. But how do I make a field that looks like the input password, which is a specific field to enter passwords? You can define the…
-
4
votes1
answer859
viewsHow to repeat a function call every X seconds in Pyqt?
I am developing a small application in Pyqt4 where I need to upload the data to a table coming from a Webservice. This I managed to do quietly. However, now, I need that every 1 minute, these data…
-
3
votes1
answer1079
viewsHow to block resizing a widget/window?
I am setting a certain widget according to the size of the secondary monitor. This I managed to do perfectly. However, as I am beginner with Pyqt, I would like to know how to block window resizing.…
-
3
votes1
answer415
viewsHow do I set a Tray Icon (tray icon) in a Pyqt application?
I’m still a beginner in Pyqt and would like to clarify a question: Is there any way to define a Tray Icon (Tray Icon) in a Pyqt application? If so, how can I do it? I need to set some options on…
-
2
votes3
answers431
viewsHow to convert variable to String?
I have a function that takes a postgresql database code and visualize setting in QLabel with the function setText(). The problem is that this code comes from the database in strange format, between…
-
2
votes1
answer1791
viewsIs it possible to make a "text for voice" with Pyqt?
I’m learning to play with Pyqt. I’m building a simple application, where there will be a voice notification when a new request is available. I wish my application written in Pyqt4 could "turn" text…
-
2
votes0
answers165
viewsDisplay message(Qmessagebox) from a class other than the main one in Pyqt4
Friends, I ask for help from you, I imagine it is simple but I am having difficulty, because I am still learning object orientation with Pyqt4. I have a main class (Application) separate from the…
-
1
votes1
answer128
viewsI wanted to improve the performance of my program
Good Afternoon, I am currently creating an interface, for an application, but I have a problem, with the function I created. def contornos(self): self.im = cv2.imread(self.imagem) im_copia =…
-
0
votes1
answer25
viewsOrganize tabs in pyqt4
Good afternoon, you guys! What command do I use to "break" the line of tabs? I would like 3 tabs to appear on a line and 3 tabs just below it. The skeleton I have regarding tabs is: # layout tab…
-
0
votes0
answers70
viewsHow to turn a Qlineedit string into a float?
Good night, you guys! I’ve been trying to turn the string of a Qline Edit into a float and I can’t!! Always returns the error saying I can’t convert string into float. What can I do to get around…
-
0
votes1
answer1038
viewsProblem with python/ Decode
I have 2 functions, the first prepares html and writes to a file . txt so that the second function opens this file and generates an email through outlook. In the body of the message, will be placed…
-
0
votes1
answer35
viewsConnect a button with a pyqt4 lcd screen
Good afternoon, everyone! I need to develop a calculator in pyqt 4, but I don’t know how to connect the number/operations buttons to the virtual lcd display. I have already researched, but I haven’t…
-
0
votes1
answer64
viewsHow to change the content of a qLabel at runtime?
Good afternoon, you guys! I need each line of qLinedit to be numbered in ascending order from 1 to 24, I created a qLabel for this, but I don’t know how to make it change the numbering according to…
-
0
votes1
answer14
viewsManipulation and grid, hbox and Vbox in pyqt4
I’m a beginner and I’m doing a graphical interface with the help of pyqt4. I need to add two columns of buttons there where there’s only one, but every time I try, the button goes to the right and…
-
-1
votes1
answer319
viewshelp with Qlocale and Brazilian currency format
in c++ I used to convert an integer value to the Brazilian currency format as follows: QLocale loc = QLocale::system(); QLocale brasil(QLocale::Portuguese);…