[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] QApplication.setStyle ()
From: Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date: 2000-05-12 11:29:39
[Download RAW message or body]
Pete Ware wrote:
>
> The following program core dumps when the setStyle() is there (sip
> 0.11, qt 2.0.1, solaris 2.6):
>
> --pete
>
> #! /usr/bin/env python
>
> import qt
> import sys
>
> def test ():
> app = qt.QApplication (sys.argv)
> app.setStyle (qt.QMotifStyle ())
> main = qt.QMainWindow (None, '')
> w = qt.QPushButton ('Testing', main, '')
> app.setMainWidget (main)
> main.show ()
>
> return app
>
> if __name__ == '__main__':
> app = test ()
> print 'starting'
> app.exec_loop ()
If you are happy to re-SIP the sources then the patch is to add
/Transfer/ to QApplication.setStyle(), ie...
static void setStyle(QStyle * /Transfer/);
I'm thinking of releasing 0.12 this weekend as a minor tidy-up release.
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic