I'm trying to work with QCompleter for autocompletion on a QComboBox. The two pictures below show the populated combobox(left) and a QCompleter on the column 1 (right).
This example works fine as ...
I'm trying to add a QWebViewEngine to my QFrame but I'm getting a
TypeError: QWebEngineView(parent: QWidget = None): argument 1 has unexpected type 'PySide2.QtWidgets.QFrame'
I cant seem to wrap my ...
For the life of me I cant figure this out. I have a table set up, and in row 0 col 0 I have a checkbox. If that checkbox is not clicked I want to disable row 1, col 0. Otherwise if clicked, enable row ...
I have a Method which performs a query and returns a list
in simple terms would be the same as
liste_r = [1,2,3,4]
in python you just need to set a ...
Print all item values in QListwidget with name and respective row number (From First item name, row number to Last item name,row number in QListWidget)
I am having trouble understanding why a deep copy of a dictionary reverts back to original values when I run the revert() method once, but when I change values again, and run the revert() method again ...
In my code, use one QLabel with fixed dimension/size. At beginning, I assign text "Hello,Python" to that QLablel. Now I want to change the text of the QLablel to "Hai, Welcome to Python".
How to ...
I want to align my all rows in model. I compile .ui to .py in 'QtDesigner' and creates form.py. Ui_MainWindow comes from form.py . Can you explain the solve with examples?
Re:I want to align my all ...
lots of examples show how to send data from a Worker to the main Application
Im looking for a way to send data into a worker store it there and receave it back
What I want to acomplish
open the ...
The column width 'I' in my table is too large. I tried with
self.table.setColumnWidth(1,8) # and also lower values
but the minimum width I get is the one ...
I'm new to python and PyQt and was developing my first app using it, and I've been stuck in a problem when trying to instantiate a class I made again. I've got the following error:
Traceback (most ...
I would like to create a QHeaderView in PyQt5 like the one that is used in this project (DB Browser for SQLite). The problem is that I don't know C++ and I don't understand how the classes and widgets ...
imagine i have a window with a lot of widgets and i dont want to have one big class, but several small classes.
How can i write in in a main.py that content of both classes should show up in one ...
I made a PyQt5 project.
And, I created executable it through PyInstaller.
I want this program to run only once.
Currently, whenever I execute this program, it runs every time.
How can I prevent it ...
I would like to automatically adjust the the window size. I have some Layouts which visibility is changing, and the window doesn't adjust automatically, so big empty space on the top whenever Layout ...
why the second window not showing when its triggered by if statement, but if i try to open second windows in other script its works with same coding
this is the main window
from hasilp1 import ...
I am writing a GUI in PyQT5 and am using the MDI for multiple windows. We have a couple of pre-written GUIs (they are well established utilities) that we would like to just use as separate subwindows ...
That is the answer I found for this question, but this isn't Python.
From this topic:
Show percentage in Qt Pie Charts?
#self.setWindowFlags(PyQt5.QtCore.Qt.WindowCloseButtonHint | PyQt5.QtCore.Qt.WindowType_Mask)
I need to show my PieChart inside my specific widget called widget.
This is my code which gets a small error, not stopping the app running but not showing the PieChart.
QLayout: Attempting ...
I have a dialog window that's called from the QMainWindow as:
res = Transfert(self.db, self.supplierid, parent=self)
I am making a basic GUI application using PyQt5, and need to create labels dynamically after user input. Now, the problem is they won't show on the screen, although the objects themselves are created. ...
I am trying to create a grid like the one shown in the image below. I want to do this by using the QGraphicsScene class in PyQt5. When I run the code that I have provided down ...
i need the code to convert py to exe using pyinstaller the project it's very big i have the main program code , design code it's converted to py and it's a pyqt5 code, and icons.qrc it's converted ...
I would like to connect the progress signal of a worker to a function that takes multiple arguments.
I have a worker thread which I use to update a progress bar. This works fine if I use, for ...
I am working on a game in which I have completed the engine and the networking layers. I am now working on some GUI for the game using PyQt5 (as the drawing isn't complex). I made a custom QWidget for ...
I have an application flow which looks like this. At startup a MainWindow is shown and asks the user to choose a project or create a new one. After a project is created or chosen from the list, I want ...
I am writing an app, and I wanted to start using PyQt5.
I am having an issue where a click button does absolutely nothing.
The following code is what I wrote
I am trying to package a PyQt5 application to PyPI. The standard method of running a PyQt5 application is:
if __name__ == "__main__":
APP = QApplication(sys.argv)
WIDGET = MainPage()
First Concern: Why is my "Second Window" (Second Class) not opening properly when a push button is being clicked from the "First Window" (First Class) ??
Second Concern: How can I send the text input ...
I have a barcode reader that reads the code of the citizenship card and verifies, on a server with OctoberCMS, if the user is registered. If you are registered, it returns the information of the user ...
I would like to change Figure according to selected QRadiobutton. In my real code , I tried various way to do that with and without signal(Also, checked other topics.).
To make it looks less ...
In my Programme. use two QLineEdit. First one is normal and second one is titled Line edit. First one/normal QLineEidt works smoothly, But In second textbox(QLineEdit), I cannot insert a text at ...
The setText method for QTextEdit is hosed on my pyqt5:
Qt version: 5.14.1
SIP version: 5.1.1
PyQt version: 5.14.1
MacOS Mojave, macbook pro
It only updates infrequently. I can force it to update by ...
I have trouble understanding whether signals contain some data or not.
for example the signal windowTitleChanged contains a data of type str which needs to be passed to it's slot:
am using python with PyQt5 framework, I have converted the .gui design using pyside2 to obtain a .py code, which is working correctly but, how will I navigate through the QtTabWidgets by clicking on ...
I want to insert a list of items into a QlistWidget.
Below is the code i am using:
names = ['apple', 'banana', 'Cherry']
for item in names:
But i am having an ...
I am trying to add multiple tables to a single tab of the QTabWidget with the help of QStackedLayout.
Here is my code:
I'm trying to create a simple desktop app that gets an IP address and show it's location using a REST API (including country, city, isp, regionName and timezone). I have 5 checkboxes in my form so ...
Consider the following toy example:
from PyQt5 import QtWidgets, QtGui, QtCore
import time, random
I have this Class ScaleWorker
which is a worker running in a thread in the main interface
it contains receave_scaledata which waits for receaving data from a device and forward it to the
I need the whole plot window to be transparent so that a chrome window, for example, on my desktop could be seen through the plot, so that I can add points to it while seeing what's behind it.
Hello I'm creating a screen snipping application and I'm displaying an image to a label. Below is a brief code block of how I'm saving and displaying this image.
self.snippedImg = ImageGrab.grab(...
I came across:
" In our example, we reimplement the keyPressEvent() event handler."
What is the best way to Explain(understand to me) What does "reimplementing an event handler means" in general ...
I am creating a basic GUI application which implements D'hontds method using PyQt5, and having trouble creating Qlbales dynamically i.e. I want to display the results in these labels, and the number ...
I am trying to make an app withthe help of qt designer and pyqt5. For some reason, when I try adding this stylesheet:
I am creating an app which has a search bar created by QLineEdit. Now I am trying to make a listview by QListView which will help user by giving them suggestion. I have already made it but I want it ...
i need to send text from MainApp to ThreadClass, and aftre get text from ThreadClass to MainApp.
class MainApp(QMainWindow, QThread, FROM_CLASS):
def __init__(self, parent=None):
I am trying to set cursor to (0,0) point when it reaches the limit of the resolution. For example when x=1919 for 1080p resolution the cursor should go back to x=0 point. If it goes repeatedly to the ...
I insert a QFrame and QTabWidget in the QSplitter. And I wanna forbidden to adjust the size of elements in QSplitter. So I call method of 'setDisabled' in QSplitter. It's useful for disabling resizing ...