[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] examples/docs for exposing custom Qt5 C++ widget through PyQt5
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2014-04-28 8:13:40
Message-ID: 6ab2df2043199e7f144c84b3c5bb4128 () www ! riverbankcomputing ! com
[Download RAW message or body]

On 04/04/2014 8:45 pm, Erik Hvatum wrote:
> Hi All,
> 
> Is there a recommended way to go about building a Qt5 C++ extension
> for PyQt5 that exposes a new widget to Python code?
> 
> Writing the C++ code and SIP file is not a problem.
> 
> Compiling the C++ code with qmake into a library is not a problem.
> 
> But how do I build the PyQt5 stuff for it?  This was all very easy to
> do with PyQt4.  THE FUNCTIONALITY THAT MADE IT EASY TO DO,
> PYQTCONFIG, IS GONE FROM PYQT5.  HOWEVER, THE EXAMPLE IN THE SIP DOCS
> STILL RELIES ON PYQTCONFIG.
> 
> Any advice more useful than "examine the 2575 line PyQt5 configure.py
> script" would be greatly appreciated.

The current QScintilla snapshot has a refactored configure.py which is 
about 80% boilerplate code and 20% an implementation of a 
ModuleConfiguration class. The intent is that you copy this configure.py 
and hack at the ModuleConfiguration class so that it meets your needs.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic