[PyQt] Finding Qt modules in different paths

Barry Scott barry at barrys-emacs.org
Tue Jan 16 08:10:44 GMT 2018



> On 16 Jan 2018, at 06:46, Peter Eszlari <peter.eszlari at gmail.com> wrote:
> 
> Hello!
> 
> I have the following setup (Linux):
> 
> - all basic Qt modules (Core, Gui etc.) are installed under the prefix "/usr"
> - QtWebkit is installed under the prefix "/app"
> - I want to install PyQt under the prefix "/app" too
> 
> How can I tell PyQt to search for Qt modules in both places ("/usr" and
> "/app") when I compile it?

I think this is what you are after:

http://doc.qt.io/qt-5/qcoreapplication.html#addLibraryPath <http://doc.qt.io/qt-5/qcoreapplication.html#addLibraryPath>

I recall that you have to change the libraryPath before calling __init__
for QApplication.

Barry

> 
> Thanks in advanced!
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180116/a270ff81/attachment.html>


More information about the PyQt mailing list