Set tiled wallpaper of Desktop
What is the good way to set tiled wallpaper of desktop using jpg file? Do I have to change it to other format? I couldn't find on Qt document. Does Qt itself support this?
Hi @samdol ,
Thank you for the link. This seems set a stretched picture as wallpaper. Is there a way to set a tiled pictures as a wallpaper?
Hi, I think you need to set that as registry
// set reg
HKEY_CURRENT_USER\Control Panel\Desktop\TileWallpaper to 1
You can use
for that as far as i know. (never tried it)
QSettings settings("HKEY_CURRENT_USER\\Control Panel\\Desktop", Setting::NativeFormat); settings.setValue("TileWallpaper ", "1"); // Refresh the background SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_UPDATEINIFILE);
Thank you mrjj.
Just for minor correction.
settings.setValue("TileWallpaper ", "1");
Then it works.
Thank you. Changed.