Skip to content
Advertisement

Tag: qwidget

Pushing QWidget Window to topmost in Python

I’m new to Python and have mostly learnt C# in the past. I am creating a QWidget class: And then define a function that creates a QApplication and then the Window: My issue is getting the gif to show topmost when it is launched. There is a Topmost property you can set on a Winform in C# which means no

Python Widget with SizePolicy

Why the sizePolicy doesn’t affect on widgets that aren’t in layout? here is an example: But that doesn’t work, if you changed the main window size the red box still has the same size. So how can I make that red box resizeable when the parent (main window) is changing. NOTE: I don’t want to use Layouts for some reason.

Create a dependent window?

I want to create a secondary window which is free-floating in relation to the main window. But I also want it to close when the main window closes. Indeed, I want the application to end completely when the main window closes, and assumed this would be default behaviour. MRE: As the code is, closing the main window does not close

Advertisement