Set tiled wallpaper of Desktop
-
-
@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);
-
@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.