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.
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 have to add you application in registry, like this
Qt Code:
... settings.setValue("myApp", qApp->applicationFilePath()); ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
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.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
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.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
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.
Last edited by tablebubble; 12th April 2011 at 16:28.
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.
Last edited by tablebubble; 12th April 2011 at 17:17.
You would be better asking on a KDE forum rather than a Qt forum
tablebubble (13th April 2011)
Thanks,
am working on that.
Bookmarks