Search code examples
pythonqtuser-interfaceresolution

How i run my program in maximum resolution screen? (python)


I need to retrive resolution of my screen to apply my Qt program but qt such as the following code:

http://bashelton.com/2009/06/pyqt-center-on-screen/

Just work with the static resolution, I need to run my program with maximum size.

Question: How i run my program in maximum size of screen forever?


Solution

  • You can call showMaximized() on your application's QMainWindow to maximize the application. You can also call showFullScreen() on the QMainWindow should fullscreen the application, hiding most of the title bars and window dressings.