[Interest] qt.conf

Hugo Drumond Jacob hugo at jacob.eng.br
Tue Mar 20 12:27:23 CET 2012


Hello Graham!

On Windows, you can add the Qt library path (directory with .DLL files) to
the environment path (PATH environment variable).

The qt.conf file is used only after your application starts. Before this,
Windows need to know all .DLL files used by your program (like ldconfig on
Linux).

If you don't know how try this, see
http://www.computerhope.com/issues/ch000549.htm to reference.

Regards,

Hugo Drumond Jacob


2012/3/20 Graham Labdon <Graham.Labdon at avalonsciences.com>

>  Thanks for your reply****
>
> Does this imply that qt.conf cannot be used with windows?****
>
> Is this situation the same on Linux?****
>
> What CAN qt.conf be used for?****
>
> ** **
>
> Thanks****
>
> ** **
>
> *From:* Tony Rietwyk [mailto:tony at rightsoft.com.au]
> *Sent:* 20 March 2012 10:40
> *To:* Graham Labdon
> *Subject:* RE: [Interest] qt.conf****
>
> ** **
>
> Hi Graham, ****
>
> ** **
>
> Windows doesn’t know anything about the qt.conf file.  So the Qt code
> itself has to be running before it can read the file.  When you install on
> another machine, you can add the lib path to the PATH variable, or copy the
> lib dll’s into the exe’s folder, or use a script file to setup the
> environment and call your exe, or…..****
>
> ** **
>
> Hope that helps, ** **
>
> ** **
>
> Tony.****
>
> ** **
>
> ** **
>
> *Sent:* Tuesday, 20 March 2012 8:44 PM****
>
> ** **
>
> Hi****
>
> I am trying to use the qt.conf functionality****
>
> In my qt.conf file I have the following ****
>
> ** **
>
> [Paths]****
>
> prefix = "C:\\Program Files (x86)\\AcquisitionSoftware\\Qt"****
>
> ** **
>
> Running the app through the debugger I can use QLibraryInfo to verify that
> Qt is recognising the presence of the conf file****
>
> ** **
>
> I.e. ****
>
> QLibraryInfo::location(QLibraryInfo::LibrariesPath) returns C:/Program
> Files (x86)/AcquisitionSoftware/Qt/lib****
>
> ** **
>
> However running the application on a machine without Qt installed fails as
> it cannot locate QCore4.dll****
>
> ** **
>
> Note that on the target machine the folder C:/Program Files
> (x86)/AcquisitionSoftware/Qt/lib exists and contains QCore4.dll****
>
> ** **
>
> Is this a known problem or am I doing something incorrectly?****
>
> ** **
>
> Thanks****
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120320/86ebb3b9/attachment.html>


More information about the Interest mailing list