How do you make a PyQt5 Child Window with QWidget as a parent modal to the window that called it?
I’m learning PyQt5 and would like to know how to prevent the user from interacting with a parent window when a child window is called. I would like to create the QMainWindow display as a menu, perhaps showing several games the user can play. When the user clicks on the game, a new window opens and the menu is inaccessible. Is there a command for the QtWidgets.QWidget object that will make the window display modal to the calling window whether called by a QMainWindow or nested within another QWidget object?
PyQt5 Animation Threading [closed]
Closed 3 days ago.
PyQt5 QFileDialog QDialogButtonBox.Open.setText doesn’t work properly
I think there is a bug in PyQt5 when handling QDialogButtonBox.Open in QFileDialog. If I change the button text, when I select a file in the list it recovers the original text.
With QDialogButtonBox.Cancel there is no problem.
Here is my code:
PyQt5 QFileDialog QDialogButtonBox.Open.setText doesn’t work properly
I think there is a bug in PyQt5 when handling QDialogButtonBox.Open in QFileDialog. If I change the button text, when I select a file in the list it recovers the original text.
With QDialogButtonBox.Cancel there is no problem.
Here is my code:
PyQt5 QFileDialog QDialogButtonBox.Open.setText doesn’t work properly
I think there is a bug in PyQt5 when handling QDialogButtonBox.Open in QFileDialog. If I change the button text, when I select a file in the list it recovers the original text.
With QDialogButtonBox.Cancel there is no problem.
Here is my code:
PyQt5 QFileDialog QDialogButtonBox.Open.setText doesn’t work properly
I think there is a bug in PyQt5 when handling QDialogButtonBox.Open in QFileDialog. If I change the button text, when I select a file in the list it recovers the original text.
With QDialogButtonBox.Cancel there is no problem.
Here is my code:
PyQT5 Application Executes but no window/application shows up
I am using PyQT5 to design a GUI and I can’t seem to open the window. I’ve read almost all the forums discussing my issue.
pyqt5 application crashes on changing QtableView entry attached to a QComboBox
In this working example, I have a SQL Lite db (“in memory”). The QtableView
is setup on a QSortFilterProxyModel
with one of the column, “product” which can be filtered via user selection through a QComboBox
.
Visual replacement of area of subwidgets in pair of custom widgets with a single widget in PyQt5?
In the example code below, I have a CustomWidget consisting of a main label (red) on top, and sub label (yellow) on bottom – and I instantiate several of those in a scroll area:
Tables are not shown correctly on laptop monitor
What you see is the MRE of one of my projects.
Three tables in a container.
The problem is that if I launch it using the 4:3 monitor at home the three tables are displayed correctly. If I launch it from the laptop the last table is not displayed.
I thought about using a scrollArea, but to no avail.