Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
Qt Creator 1.3.85 (2.0.0-rc1)
-
None
-
Linux
Qt 4.6.3 installed from qt-sdk-linux-x86-opensource-2010.03.bin
-
d7d23226babe11019177741307b8fef3913a2faa
Description
QtCreator set wrong prefix (QLibraryInfo::PrefixPath).
When I start my program from QtCreator I got prefix "/home/berlin/dev/qt-45" (and plugins doesn't work).
But I run my program from command line prefix is ok.
Example code:
int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); qDebug() << QLibraryInfo::buildDate(); qDebug() << QLibraryInfo::buildKey(); qDebug() << QLibraryInfo::location(QLibraryInfo::PrefixPath); qDebug() << QLibraryInfo::location(QLibraryInfo::PluginsPath); }
Running this from QtCreator I got:
QDate("wt. cze 8 2010")
"i386 linux g++-4 full-config"
"/home/berlin/dev/qt-45"
"/home/berlin/dev/qt-45/plugins"
Workaround is to create qt.conf inside app dir (not QtCreator dir) pointing to proper prefix.