Relative Content

Tag Archive for pythonpyqt5

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.

Python QCheckbox setExclusive not working

I have a QTableWidget with a checkbox on each row, problem is the user is able to check multiple rows. I have tried to add the setExclusive method but it doesn’t appear to be working. I have searched on here and found one similar example but following their lead didn’t work either.

I want to view 3d images in PyQt5 but im unable to do that

QSocketNotifier: Can only be used with threads started with QThread
Initializing UI
Connecting to database
Creating table
Loading models
Viewing CAD image for ID: 1
Displaying 3D image from path: images/Colosseum_final.stl
Initializing VTK
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 12 (X_ConfigureWindow)
Resource id in failed request: 0x3
Serial number of failed request: 7
Current serial number in output stream: 8

Synchronize splashscreen and main program

I’m using this piece of script to get a splash screen followed by the main program.
The splash screen works correctly: it shows the image for the set time after which it exits and the main screen begins which however shows its screen after about 2.5/3 seconds.
What I would like is to synchronize the splashscreen output with the appearance of the main program screen