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

List:       pykde
Subject:    Re: [PyQt] SIP wrapper fo convert C++ widgets into python modules
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2014-08-18 4:44:34
Message-ID: 20140818044434.GO16530 () lupin
[Download RAW message or body]

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #2 (multipart/signed)]
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.


Hi,

> The solution seems to be that each widget's cpp will first need to be
> converted into a python module. Unfortunately, haven't found much
> information on how to do this in PyQt5. An example on the
> RiverBankComputing website is dead:
> 
> http://stackoverflow.com/questions/1607515/pyqt-custom-widget-in-c

It seems that has moved to
http://pyqt.sourceforge.net/Docs/sip4/using.html#a-more-complex-c-example
I adjusted the link on the Stackoverflow page.

> For example, this is the header for one of the widgets, how would it
> need to be converted by sip?

If the widgets are as simple as your header suggests, wouldn't it be
easier to translate them to PyQt by hand? I've done that for some
simple C++ examples and found it to be quite straightforward, and it
certainly keeps your toolchain simpler ;)

Florian

-- 
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/

[Attachment #5 (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
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