Hello,

Here is the program. On the Web I found:

Qt Code:
  1. QSettings reg("HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\.sp\\DefaultIcon",
  2. QSettings::NativeFormat);
  3. reg.setValue("Default", "C:\\Users\\Tomy\\Desktop\\package_directory"
  4. "\\packages\\com.vendor.product\\data\\Spreadsheet.ico");
  5.  
  6. SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
To copy to clipboard, switch view to plain text mode 

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?