Solved 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?
-
-
@Ni.Sumi
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? -
@samdol
Hi, I think you need to set that as registry// set reg
HKEY_CURRENT_USER\Control Panel\Desktop\TileWallpaper to 1
You can use
http://doc.qt.io/qt-5/qsettings.html
for that as far as i know. (never tried it)
Something like:QSettings settings("HKEY_CURRENT_USER\\Control Panel\\Desktop", Setting::NativeFormat); settings.setValue("TileWallpaper ", "1"); // Refresh the background SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_UPDATEINIFILE);
-
@mrjj
Thank you mrjj.
Just for minor correction.
settings.setValue("TileWallpaper ", "1");
Then it works. -
@samdol
Thank you. Changed.