[PyQt] Access custom Qt widgets from PyQt via SIP?

Phil Thompson phil at riverbankcomputing.com
Sun Aug 10 14:56:22 BST 2008

On Sun, 10 Aug 2008 09:24:47 -0400, Kevin Walzer <kw at codebykevin.com>
> In the latest version of Qt (4.4.1),  there is a demo called 
> "macmainwindow" that builds a Mac-native window for OS X, wrapping some 
> platform-specific widgets:
> http://doc.trolltech.com/4.4/demos-macmainwindow.html
> Specifically, the Mac search field with rounded corners is wrapped as a 
> QObject in C++.
> Some of the components in this demo, such as the unified toolbar, are 
> exposed as API's in Qt and therefore PyQt, but I'm not sure the search 
> field is. How can I access this functionality from PyQt using the Qt 
> sample code as a basis? Would I need to do this via SIP or does PyQt 
> provide hooks for this kind of thing?

You would need Python Carbon bindings from somewhere (rolling your own with
SIP if really necessary).


More information about the PyQt mailing list