Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.2, 6.0.0 Beta2
-
-
efa5a699729c6ff9f9d7991d12ed70139e3be669 (qt/qtbase/dev) f120933e53970ee425cfa5ce621b29c435a1000e (qt/qtbase/6.0) 41937df503b0c09ea319194d78a41a16ef5e0bbf (qt/tqtc-qtbase/tqtc/lts-5.15)
-
Da Vinci sprint 25
Description
https://doc.qt.io/qt-5/qcoreapplication.html#setLibraryPaths says:
Sets the list of directories to search when loading libraries to paths. All existing paths will be deleted and the path list will consist of the paths given in paths.
Which is not correct because the applications path is added:
#include <QApplication> #include <QDebug> int main(int argc, char *argv[]) { qputenv("QT_DEBUG_PLUGINS","1"); QStringList sl; sl.append("/home/kapinter/Qt/5.15.1/gcc_64/lib"); QCoreApplication::setLibraryPaths(sl); QApplication app(argc, argv); return app.exec(); }
and the log shows that it is still searching in the location where the application is.
The code is visible here void QCoreApplicationPrivate::init() :
https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qcoreapplication.cpp#n789
Attachments
For Gerrit Dashboard: QTBUG-89130 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
329534,4 | Doc: Clarify setLibraryPaths behavior | dev | qt/qtbase | Status: MERGED | +2 | 0 |
330258,2 | Doc: Clarify setLibraryPaths behavior | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
330260,2 | Doc: Clarify setLibraryPaths behavior | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |