franky
18th September 2017, 17:40
Hello,
Here (https://www.dropbox.com/s/ebv4qvol49rrqd3/SP.rar?dl=0) is the program. On the Web I found:
QSettings reg("HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\.sp\\Defaul tIcon",
QSettings::NativeFormat);
reg.setValue("Default", "C:\\Users\\Tomy\\Desktop\\package_directory"
"\\packages\\com.vendor.product\\data\\Spreadsheet. ico");
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
I put this in void MainWindow::writeSettings() and void MainWindow::readSettings() in the code. And then created an installer using Qt Installer Framework and installed it on Windows.
No icon!
Any idea?
Here (https://www.dropbox.com/s/ebv4qvol49rrqd3/SP.rar?dl=0) is the program. On the Web I found:
QSettings reg("HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\.sp\\Defaul tIcon",
QSettings::NativeFormat);
reg.setValue("Default", "C:\\Users\\Tomy\\Desktop\\package_directory"
"\\packages\\com.vendor.product\\data\\Spreadsheet. ico");
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
I put this in void MainWindow::writeSettings() and void MainWindow::readSettings() in the code. And then created an installer using Qt Installer Framework and installed it on Windows.
No icon!
Any idea?