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

İsmail Dönmez ismail at namtrac.org
Sun Aug 10 20:57:36 BST 2008


Hi,

On Sun, Aug 10, 2008 at 16:56, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Sun, 10 Aug 2008 09:24:47 -0400, Kevin Walzer <kw at codebykevin.com>
> wrote:
>> 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).

Also note that with Qt 4.5, its expected that Carbon will be replaced
with Cocoa for better OSX integration and 64bit support.

Regards,
ismail

-- 
Programmer Excuse #11: I figured I didn't need to test because it was
obviously correct.


More information about the PyQt mailing list