Hi,
I want my application automatically launch at windows startup, according to what i founds on internet a key must be added to windows registry. By using code below i added the key. When i open stated directory on registry, key is there. But application doesn’t start on startup. What is wrong?
QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",QSettings::NativeFormat);
settings.setValue("MyApp", QCoreApplication::applicationFilePath().replace('/','\\'));
↧