Hi, does QT provide a way to modify the Registry, and so that the application can start ifself then the OS starts.
Thanks in advance!
I'm using MS-XP.
Printable View
Hi, does QT provide a way to modify the Registry, and so that the application can start ifself then the OS starts.
Thanks in advance!
I'm using MS-XP.
you mean add this in constructor or destructor?? And if I have added it to the registry, how can user delete it from registry if they don't want the application to start automatically??
Thanks
yes
just add this functionality in your app :)
take a look at QSettings::remove, read about QSettings.
I have added it into the registry, but I have another problem, in the registry, other softwares' paths are using '\', while my application's path uses '/'. I wonder if the OS can recognize the path and run my application when it starts??
have a look at QDir::toNativeSeparators function.
I have solved it:
I use the QString::replaceto replace all the "/" in the file path into with "\", so it is converted into the correct file path under Window.
sorry for bad english..
my OS ubuntu , how to restart application in ubuntu?
Putting it in your profile is one way
Hello!
How can I do this in Linux OS running KDE4.0?
Please, I urgently needs a sample code(on that segment).
Thanks in advance.
Put the program into the Autostart folder and KDE will launch it once KDE is up and running.
Yes, am aware of that, but i need i way to do that in my code, I dont want to put the entire application in the ./kde4/Autostart/; I need user option like "Start when window start". Please help is needed urgently.
Thanks in Advance.
Place an appropriate .desktop file in the Autostart directory.
please, can i get a sample of what the .desktop file should contain, the ones on my system(Qt.desktop) dont do autostart.
Please help.
Thanks in Advance.
You would be better asking on a KDE forum rather than a Qt forum
Thanks,
am working on that.