Most voted "pyqt" questions
Pyqt a library used to link (Binding) between a Qt framework and a Python script
Learn more…60 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?
-
5
votes1
answer938
viewsHow to create buttons next 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 his due processing on each screen and clicking 'forward' to the next…
-
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…
-
4
votes5
answers1314
viewsHow to turn a Pyqt5 project into an executable?
I would like to know what would be the best way to convert an application Pyqt5 to an executable application. Is there any way to "compile" an application in Pyqt5? Is there any way to create an…
-
3
votes1
answer400
viewsWhich component to use in Pyqt4 to display records of an on-screen SQL query?
I’m developing a graphical Python desktop application using Pyqt4 (Qt Designer), my doubt is about which component use to display on my screen frmTelaPesqAluno records of an SQL query, and how to…
-
3
votes1
answer669
viewsHow do I click an image and perform a function
The language is python and the graph is Qt4. I have a qlabel and a hidden widget. I need that when the qlabel is clicked the widget appears, and when it is clicked again it disappears. I researched…
-
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…
-
3
votes1
answer293
viewsCalling Progress bar class from another file
People come to ask for help from you, I believe very simple but that gives a bad headache for those who do not have much practice with object orientation, I have a file progressbar.py, which since…
-
3
votes2
answers93
viewsHow to disable a Qlineedit in Pyqt?
How do I disable one QLineEdit in Pyqt5? Example: inputUserName = QLineEdit(self) I’d like to disable it, just like in Html, when we use the attribute disabled. It is possible?…
-
3
votes1
answer81
viewsWhat safe practices can I use to store a password in desktop applications?
I plan to make an application with Pyqt5 to issue notifications based on an API I have. The user, obviously, in a first access would have to use the login and password, to access the application. I…
-
2
votes1
answer51
viewsQcombobox.addItems: called with Wrong argument types
I have the following code: self.option = QComboBox(self) self.option.addItems(self.getJson) def getJson(self): self.data = {'image' : ['planet.jpg', 'cat.png', 'building.jpg']} return…
-
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
answer725
viewsDynamic table in python
I have a problem and I can’t identify the mistake. I am creating a dynamic table in Python where it will be filled with database information. The problem is the code is repeating the first line of…
-
2
votes1
answer390
viewsCapture date from Qdateedit
I need to pick a date QDateEdit. I did the designer using Qt Designer, in properties activated calendarPopup and the displayFormat for dd/MM/yyyy. I want to capture this date to insert in a query. I…
-
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
votes1
answer850
viewsHow to submit when pressing ENTER on a Qlineedit?
I have a certain QLineEdit in my application that when a QPushButton is clicked, the text of it is sent to the database. But I wish I could add that same event by pressing the ENTER key on that…
-
2
votes1
answer159
viewsIs it mandatory to use the pyqtSlot decorator?
When I want to connect a QPushButtonto an event, for example, I use a method and add it as event callback clicked.connect For example: def buildUi(self): self.buttonSubmitText =…
-
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…
-
2
votes3
answers112
viewsIn Python how to pass the self between 2 windows using modules
I’m learning Python, version 3.7 with Pyqt5 (Qt Designer) I’m trying to define the value of a label using modules, in window 1 it calls the function and works, but when I open window 2 and click on…
-
1
votes1
answer143
viewsHow to use the Qtreewidget Finditem in Pyqt ?
I have a tree QTreeWidget with several previously included items. I need to search for a string x has the same text value as mine QTreeWidgetItem, or I need to check all items in my tree. Does…
-
1
votes1
answer155
viewsAs I call a method of a Qtgui.Qmainwindow class, within another Qobject class in python
I have a class: class MyWindow2Class(QtGui.QMainWindow, form2_class): within the init I have this piece of code: self.scr = ScriptManager(self)…
-
1
votes1
answer420
viewsProblem compiling python in pyqt libraries, with py2exe
I’m trying to compile with py2exe, but when I compile from error. Let me give you an example of this error, with Python 2.7 64-bit programs, pyqt4 for Python 2.7, and py2exe for Python 2.7. Follow…
-
1
votes0
answers38
viewsWhat is the function of pyqtSignal?
I did some research on the class pyqtSignal and its methods, but I could not understand well. Someone who works with this class, can explain to me their function?
-
1
votes1
answer1063
viewspython command to "grab" text from Qt Designer fields and save to sqlite
Good afternoon. I’m enthusiastic and I’m starting in python. With Tkinter I can send the text of the fields to the database with the function "get()", in gtk, if I’m not mistaken, with "get_text()".…
-
1
votes1
answer226
viewsHow to Communicate Between Threads and Pyside Qt?
The graphical user interface window created in Pyside is normally executed following the normal program flow. The actual python script of the program runs in a Thread in parallel. But this thread…
-
1
votes1
answer110
viewsHow to keep the window created by Pyqt5 open?
After studying the object orientation part for a long time I started to study Pyqt5. I was doubtful in the following code: class App(QWidget): def __init__(self): super().__init__()…
-
1
votes1
answer329
viewsHow to redesign a window with Pyqt5?
I have a CRUD made with Pyqt5 that adds a user to a database Postgresql and does a search to show registered users in a QT Listwidget. However, when adding a new user, the screen does not "reload"…
-
1
votes0
answers70
viewsProgram not responding PYQT5, when I need it to stand still for a few seconds (WIFI,UART,ESP32)
I am facing the following problem, my program sends when the object, modemlist which is a Qcombobox is in the WIFI option I send a request to the esp show me the available networks and it takes a…
-
1
votes1
answer100
viewsHow I can prevent the user from pressing the button several times in a row in PYQT5
[Solved]I’m pretty beginner in pyqt, mainly in python, I’m with a problem I looked at several foruns, how can I prevent the user from pressing the button multiple times in a row? I already tried…
-
1
votes0
answers41
viewsDoes Pyqt5 monitor events asynchronously on Windows and synchronously on Raspberry?
Context I’m developing a program that uses Opencv4 to identify some metal fasteners, the program is relatively simple and uses in short color search contour filters, in Windows so far everything…
-
0
votes0
answers175
viewsHow to enable vertical scrollbar in python qwebview?
I need to enable the scrollbar in a widget qwebview, and put the automatic scrolling, but I couldn’t find any information on how to do this in python. I tried to do so:…
-
0
votes1
answer49
viewsHow to escape HTML from an entry in Pyqt?
Both Pyqt4 and Pyqt5 can interpret HTML entities. I have a place where the text is displayed in HTML format. However at the time of sending a text made by a certain QLineEdit, I need this text to be…
-
0
votes1
answer726
viewsHow to insert accented characters in Text Entries in Pyqt5?
My text entries in Pyqt5 (Qlineedit, Qplaintextedit, Dialogs,...) do not accept accented characters typed on the keyboard. I can only insert them if I type them in another editor and appeal to…
-
0
votes1
answer612
viewsPyqt calling file created by Qtdesigner
I developed a Pyqt window with Dialog with Buttons Right template but calling me in my main class gives me an attribute error. I saw in the YT video that the guy used Main Window as a template and…
-
0
votes1
answer132
viewsStyle of a program’s widgets using Pyqt5
I have been creating a kind of text editing software using python3.5 and pyqt5, and at the stage of creating the packages I ended up noticing that the development version, which used a Pyqt5 package…
-
0
votes0
answers45
viewsData entered into Sqlite3 is not shown in the Pyqt4 application
I made a small Pyqt4 desktop application where I insert data in db sqlite3, but when I go to consult this data that was inserted previously, they are not on the display screen of them, only when I…
-
0
votes0
answers47
viewsHow do I deactivate Focus in a window even if I click it?
I am programming a virtual keyboard, where I will type by clicking the mouse. In python2.7 interface Qt4 I’ve been able to solve the idea enough, I’ve been able to make him keep showing up, and also…
-
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
answer208
viewsQpushbuttos with more robust designs
I’m studying Pyqt5, and I think it’s kind of weird how the Qpushbuttons are designed. you can put the button description in the bottom corner and make it change color when the cursor is on top of it…
-
0
votes1
answer556
viewsHow to add text to a Qplaintextedit(PYQT5)
At first I would just like to know how to add values in a Textedit, however my goal is to take the values of the two comboBoxs and use them to generate the password. Follow the code: # -*- coding:…
-
0
votes1
answer655
viewsI am unable to open another Pyqt5 form
I can’t seem to make the other window in my file appear. Code: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'testando.ui' # # Created by: PyQt5 UI code generator 5.9…
-
0
votes1
answer27
viewsHow to make a Window always stay above the others in PYQT5?
I am creating a small application and need the main window to always be above the others, which attribute to use in pyqt 5 ? From now on I thank
-
0
votes0
answers83
viewsProblem with the data acquisition time function provided by Arduino
I’m doing a Plot temperature vs Time via Arduino in a graphical interface. The program is crashing. Problem is in the function of time: # -*- coding: utf-8 -*- import matplotlib import…
-
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
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
answer466
viewsPyqt5 how can I make a button select a stacked Qt widget
I’m making a form in python, but I need to know what I do to make a button select the index of the stackedwidget as well as in c++ using Qt. from PyQt5 import QtCore, QtGui, QtWidgets import sys…
-
0
votes1
answer183
viewsQwidget class inside Qmainwindow class
I have the following code: # -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QPushButton from PyQt5.QtWidgets import QSpacerItem, QLabel, QComboBox…