Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QString lightscreen = QDir::toNativeSeparators(qApp->applicationFilePath());
- #ifdef Q_WS_WIN
- // Windows startup settings
- QSettings init("Microsoft", "Windows");
- init.beginGroup("CurrentVersion");
- init.beginGroup("Run");
- if (startup)
- {
- init.setValue("Lightscreen", lightscreen);
- }
- else
- {
- init.remove("Lightscreen");
- }
- init.endGroup();
- init.endGroup();
- #endif
Advertisement
Add Comment
Please, Sign In to add comment