Qt : Show Window In Center Screen

I want to create a program in Qt when running show window in center screen. We must include header QStyle and QDesktopWidget to show window in center screen. This is a simple method how to create a program in Qt when running show window in center of screen :

You can change runOnlyOne with your window application. I am success to compile thisĀ  Qt: Show Window In Center Screen program in Ubuntu with Qt 4.6.2.

Source:
http://developer.qt.nokia.com/forums/viewthread/3386/

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.