PDA

View Full Version : Finding path of qtcreator install directory



ghm
1st June 2011, 13:42
Is there a way to find the location of where you've installed qtcreator?

I'm looking for a similar sollution as the $QTDIR variable.

Santosh Reddy
1st June 2011, 23:05
what is your platform?

ChrisW67
2nd June 2011, 00:41
For what purpose? Certainly any program you write and want to deploy, excluding a plugin for Qt Creator itself, should be totally independent of the location of any IDE used during its making.

ghm
6th June 2011, 09:58
Windows platform.

The purpose is we're building custom designer widgets, and to be able to use them within the integrated qt designer the dll plugin has to be placed within %qtcreatordir%\bin\designer.

If someone has an idea of a better sollution please let me know.

Thanks for the replies!

mvuori
6th June 2011, 10:19
The closest thing might be its uninstalle string in registry, but even that is version dependent...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\Qt Creator 2.2.0 - C:_QtSDK_QtCreator

I would, in the installer, just ask the user to point to the correct directory of QtSDK (as the users are programmers, this would be ok).

ghm
6th June 2011, 10:56
I've been thinking of a sollution like that. However, when working with a custom wizard. I've tried adding a browser for QtSDK, and setting that path as target for a file, but it adds target folder path to the front. Is there a way around this?

Is there somewhere I can find more documentation regarding the wizard.xml file?