Most voted "pyqt-5" questions
pyqt-5 is version 5 of Pyqt, which is a Python language packer for the Qt library, and is the basis for KDE (desktop environment for Linux).
Learn more…59 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 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 answer92 viewsPython - Qdate to datetime conversionI need to convert an input date by a Qcalendar to datetime (from lib datetime). How can I do it? 
- 
		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… 
- 
		3 votes1 answer33 viewsHow to set a stylesheet for a widget without affecting your child widgets in Pyqt5?I am creating a window with Pyqt5 Framework and need to add to it a background image. For this, I am setting your stylesheet thus: mainWindow.setStyleSheet('background-image: url("./MyImage.png");')… 
- 
		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 votes2 answers1148 views(Python + Pyqt5) How to close one window after opening another?Hello. I’m having a problem with a login form. When you enter the correct credentials, the next form opens, but the login form remains open. How do I close the login form after opening the proximic… 
- 
		2 votes3 answers112 viewsIn Python how to pass the self between 2 windows using modulesI’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 votes0 answers69 viewsPyqt5 - Mainwindow opens and then closesmain py. (dialog) if __name__ == '__main__': try: import sys from user_interface.ui.login import Ui_Dialog from PyQt5 import QtCore, QtGui, QtWidgets app = QtWidgets.QApplication(sys.argv)… 
- 
		1 votes1 answer1063 viewspython command to "grab" text from Qt Designer fields and save to sqliteGood 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 votes0 answers54 viewsHow to remove lines in PyqtI need to remove a row from Pyqt’s table. In fact it loads the lines according to the filter. But at the time it will open it pulls the ID of the lines out of the filter, how to solve this? 
- 
		1 votes2 answers335 viewsHow to open a second window in Pyqt5 without closing the main?I am creating a login interface, and I want when the user presses a button, to open a new window in Pyqt5 but without closing the main window, but the secondary window is not staying open. from… 
- 
		1 votes0 answers207 viewsHow to make multiple dynamic graphics with Pyqt5?I need to do four dynamic graphics on a single screen but I can’t find how to do it. I can only show one chart at a time. I used the code below as an example, but I can’t create four charts and show… 
- 
		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 answer347 viewsHow to remove the edge of a Pyqt5 window on Raspberry Pi?I’m developing an application that will run on a Raspberry Pi interfaced in Pyqt5. This application will occupy the entire screen, making it impossible for the user to click outside the application.… 
- 
		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 votes1 answer76 viewsas per image to resize in Fullscreen Pyqt5I’m starting as an IT and I found this perfect library that is pyqt5, but there are some things that I can’t fully do because the method I use seems to not work. Instead of creating a screen just by… 
- 
		0 votes1 answer132 viewsStyle of a program’s widgets using Pyqt5I 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 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 answer1017 viewsHow to make the image occupy 100% of the screen. pyqt5 -pythonI have an image and I need it to occupy 100%, will be the background of my program, how to proceed? from PyQt5 import QtWidgets, QtGui import sys class Hello_World(QtWidgets.QWidget): def… 
- 
		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 answer318 viewscreate an MDI screen with Python and Pyqt5I’m making a system with Python and Pyqt5. I already created the menus and now I’m applying the necessary functions of each item. I want to work with MDI screens and I’m having difficulties with it.… 
- 
		0 votes1 answer135 viewsHow to print with Pyqt5?I made a little program in Pyqt5 where I type the Name, Number, Phone,Address, description of services and values. Now I want to print it out as a budget, but using that function: def… 
- 
		0 votes0 answers35 viewsParameter "-noconsole" is not workingI have a Python project that uses Pyqt5 and when I run the executable through pyinstaller with the command: pyinstaller --noconsole --onefile --windowed main.py is generated the executable where I… 
- 
		0 votes1 answer466 viewsPyqt5 how can I make a button select a stacked Qt widgetI’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 answer31 viewsHow do I set an event to run when the app ends in Pyqt5?I am creating an application in Pyqt5 and need to run a code when the application is finishing. For that, I thought about overwriting the method quit class QApplication: class MyApp(QApplication):… 
- 
		0 votes1 answer31 viewsHow to remove the blue background from the table item when selected?I have a QTableWidget and I need all items in the table to have the same background color. The problem is that when an item is selected, it gets the background blue. I tried the following code on… 
- 
		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 votes1 answer87 viewsMultiple ui’s on the same QmainwindowI am trying to put two Qwidgets imported from ui files, however none appears, problem that does not occur when I enter only one. # -*- coding: utf-8 -*- import sys from PySide2.QtUiTools import *… 
- 
		0 votes1 answer183 viewsQwidget class inside Qmainwindow classI have the following code: # -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QPushButton from PyQt5.QtWidgets import QSpacerItem, QLabel, QComboBox… 
- 
		0 votes1 answer276 viewsHow to use print in the graphical interface?I need the result of the function print((randint(0,700)) appear on the label (label) of my program window (created with Py’s own Qt Designer), and not in the interpreter, but only know the command… 
- 
		0 votes2 answers235 viewsHow to Update to a DB Sqlite3 with POO?I have a product registration program with everything working only I lack the update, I can update edit the data in the table and in the bank but it is not working right. It edits all the data and… 
- 
		0 votes1 answer129 viewsPyqt5 Error Installing PyqtwebengineHello, I was trying to create a browser with python and when I installed Pyqtwebengine, my Pyqt5 stopped picking and no longer works, it shows a compatibility error but can not solve, I tried to… 
- 
		0 votes1 answer413 viewsHow to read text boxes, and create action from the button in Pyqt with a form created in Designer?Good, I designed a widget in Qt Desginer, and converted to python, and using the tutorial, I can run the widget (two textbox, 1 button and a label). The idea is to add the contents of the boxes,… 
- 
		0 votes0 answers22 viewsHow to get the Qlineedit name that is focused on Pyqt5?I created 5 pages with Qt5designer, each page has several Qlineedid. I switched to python. The application gets very extensive and repetitive. I need to simplify capturing the name that is in focus… 
- 
		0 votes1 answer59 viewsHow to replace one layout with another in Qhboxlayout?I created two Qgridlayout, with 16 buttons each, numbered from 1 to 32. I stored the two Qgridlayout in a list (one at each list position). This list is inserted into a Qhboxlayout to display the… 
- 
		0 votes1 answer158 viewsPython application, Pyqt5, not displaying the . UI file?This program is an application to download videos from youtube, the code is working, but when I tried to call the graphical interface created in Qt Designer, it did not appear. The code did not show… 
- 
		0 votes1 answer53 viewsHow to change formularies in different modulesI’m using Python 3.7 I have 2 forms (windows) that I made with Pyqt5, in one of them have some Labels that I need to change according to the settings window configuration. created a modules with the… 
- 
		0 votes0 answers66 viewsProblems with multiple windows in Pyqt5Hi, I’m having trouble with multiple windows on Pyqt5. I created a graphical interface using Qt Designer, which consists of two Frames, in order to generate two windows for the user. The initial… 
- 
		0 votes1 answer95 viewsRemove Row and Column Indexes in the DataframeI’m learning python and I started using pyqt5 as a graphical interface and, to force learning, I’m doing a little contest ball drawing. For data analysis I’m using DataFrame and adding to… 
- 
		0 votes1 answer30 viewsContext Menu does not appear on tray icon when I click with mouseI’m creating an app that has a tray icon (QSystemTrayIcon) and I want him to have some options to control the application. For this I created the class below: class QTrayIcon(object): def… 
- 
		0 votes1 answer39 viewsHow to run widgets that use Qtimer from a different Thread?I created an application where the user presses a certain key combination - using the package pynput - and a message from a "Qtoaster" appears on screen. Below is an example code: from pynput import… 
- 
		0 votes0 answers9 viewsActivate Fields with Radiobutton QtdesignerOn the main screen, I have a radiobutton with two fields of lineEdit. When the radiobutton is clicked (check), the lineEdit1 needs to be released and the lineEdit2 needs to be blocked. And so vice… 
- 
		0 votes1 answer75 viewsHow to add a Qpushbutton to Qtablewidget?I am creating an application in Pyqt5 with a table, using the classes QTableWidget and QTableWidgetItem. The table has three columns - the first two are just texts and the last one is a button,… 
- 
		0 votes1 answer62 viewsAccessing a Pyqt5 Widget and modules within a packageI am making a program using as GUI the framework PyQt5, using UI files. I’m having trouble accessing the module inside the file .py that I create so that I put the functions inside them and thus… 
- 
		0 votes0 answers16 viewsCx_freeze. Error with Cx_oracle client when running the program on another computerI developed a GUI program using Pyqt5 for users to feed a "Mysql" database (which is installed on a server on the same network as other computers). However this program needs to get information from… 
- 
		-1 votes1 answer544 viewsHow to configure Raspberry Pi to run only one Python application?I am developing an application in Python to run on a Raspberry Pi, this application will start as soon as the device is turned on. I am using the Pyqt5 to make the screens. How can I configure the… 
- 
		-1 votes2 answers437 viewsIs there a way to center the screen created in python ( pyqt ) for any resolution?I’m doing development of an application in python and Qt, ie pyqt5 and I wonder if there is a way whenever I run the display I created centralize on the screen, I saw that has to do this manually…