Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-1646

QtCreator set wrong prefix (QLibraryInfo::PrefixPath)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 1.3.85 (2.0.0-rc1)
    • All Other Issues
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dt Daniel Teske
            nesbitt nesbitt
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes