After installing CentOS 7 you will be forced to enter startx command to go into GUI (Gnome Desktop) mode each time you boot into the system. To overcome this you have to set the default boot option using the following commands:
Qt allows you to easily grab an screenshot and save it using grabWindow function implemented in QScreen. Here is how you can use it:
You can use the little piece of magic in this post to minimize all programs and windows except yours in Qt (C++)
In this post I am sharing a piece of code that I use to change Desktop Background image in Qt (C++) for Windows. This can be used in newer Windows versions (Windows 8 and later) and I have already tested it with Windows 10 64 bit. It involves using Windows interfaces in Qt.