pyqt Questions
4
Solved
I have a script which has a login screen and if the cancel button is pressed, I want to exit the application altogether. I have tried 3 ways:
sys.exit()
QApplication.quit()
QCoreApplication.insta...
2
I'm going to make a real-time curve out of a sequence of data. First, I established a quantity dictionary, which has 3 groups of data. The current program can draw a curve dynamically. The X-axis c...
3
Solved
I have set the icon for my PyQt application using self.setWindowIcon(QtGui.QIcon('icon.png')) and it works fine when I run my code in PyCharm.
Next I converted my application to one file with PyIns...
Abm asked 19/5, 2016 at 11:14
10
Solved
I am trying to find Qt designer app on Mac. I installed anaconda package and conda reports that qt, sip, and pyqt are installed. Still I couldn't find the designer app in any of the folders. My Pyt...
7
Solved
Questions:
What is the best practice for
keeping track of a thread's
progress without locking the GUI
("Not Responding")?
Generally, what are the best practices for
threading as it appli...
Olives asked 20/2, 2009 at 14:0
4
Solved
Depending on a conditions I would like to connect/re-connect a button to a different function.
Let's say I have a button:
myButton = QtGui.QPushButton()
For this example let's say I check if th...
Mucoprotein asked 5/2, 2014 at 19:27
4
I want to create my small GUI app with PyQt6. I've installed PyQt6, but I also have to install PyQt6-tools. So, when I tried to get it, I got this error:
C:\Users\egorl>pip install pyqt6-tools
C...
5
Solved
I am working on an app using Python3 and PyQt5, with my UI layout begin defined in a Qt .ui file and loaded into my QDialog class at runtime. Therefore, the instances of my UI elements, such as a Q...
Lashaun asked 8/11, 2019 at 16:42
3
Solved
I have a QGroupBox with assigned to it QVBoxLayout.
groupBox = QtGui.QGroupBox()
layout = QtGui.QVBoxLayout()
groupBox.setLayout(layout )
Then there is a single QLabel assigned to the layout.
l...
4
Solved
I have a table widget with two column header in a dialog that looks like this:
There is a separation between the column headers named "Index" and "Label", but there is no separ...
Aroma asked 24/7, 2016 at 17:14
5
Solved
I am attempting to create a tree widget that will essentially allow the user to view various breakdowns of data and have the option to delete certain items. In order to do this I want to have check...
Loopy asked 10/7, 2015 at 13:38
2
Solved
Is it possible to pass variables through slots so I can print out certain text?
Trying to pass variable 'DiffP' which is defined in another function to slot.
'DiffP' changes based on which file is...
Willodeanwilloughby asked 13/7, 2017 at 21:12
6
Solved
I have a taskbar menu that when clicked is connected to a slot that gets the trigger event. Now the problem is that I want to know which menu item was clicked, but I don't know how to send that inf...
3
Solved
In PyQt, how does one display a file browser that shows and selects only directories (not files)?
And how does one retrieve the name of the selected directory?
Exculpate asked 26/11, 2010 at 14:19
4
Solved
I'm writing Chat gui for client on Python using PyQt5.
I have a QTextEdit, which the client can write messages in it.
I wan't to know when the 'Enter' key is being pressed while the focus is on the...
3
Solved
I'm using QtableView to show my logs and to filter them by column, QSortFilterProxyModel is used. If i filter one column using certain value, and with the filtered data, if i try to filter second c...
Bora asked 9/11, 2017 at 12:11
5
Solved
Is there a way to wrap text in QCheckBox like it is done with QLabel?
label = QLabel( QString.fromUtf8('long text in here'))
label.setWordWrap(True)
I tried \n which will add a linebreak but thi...
6
I'm currently learning how to build an application with pyqt5 and encountered some problem with closeEvent method, overriden so user gets asked for confirmation by QMessageBox object. It seems work...
4
I am trying to design an MVC-pattern with PyQt.
I want to split all programs into 3 parts:
classes abstracted from all Qt classes (model)
classes providing data from the model to a Qt app (contro...
2
Solved
I am working with PyQt and am attempting to build a multiline text input box for users. However, when I run the code below, I get a box that only allows for a single line of text to be entered. How...
10
Solved
I am trying to convert ui file created by QTDesigner to py file. but i get the error:
pyuic5 is not recognized as an internal or external command.
I use anaconda 3, and tried all suggestions here:
...
4
import sys
from PyQt5.QtWidgets import (QApplication, QWidget)
app = QApplication(sys.argv)
window = QWidget()
window.setGeometry(50, 50, 500, 300)
window.setWindowTitle('Hello, world')
window.show...
8
Solved
I have a simple application that runs a process that can last for several minutes before completing. I am trying to provide an indication to the user that it is processing the request - such as cha...
Romany asked 21/11, 2011 at 21:39
5
Solved
Simple question as in the title - if I call setObjectName() on an object, does it have to be unique, or is it just recommended because of convention? I've subclassed QLabel, and want to automatical...
4
Solved
I have got a loop. I created a QCheckBox and put it in a QTableWidget cell, and everything is Ok. In each step of loop I have called a connect function, for myslot SLOT, but only the last QCheckBox...
Mascia asked 22/10, 2013 at 6:44
© 2022 - 2025 — McMap. All rights reserved.