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

List:       pykde
Subject:    Re: [PyKDE] overloading events with qt designer and pyqt
From:       Frank =?iso-8859-1?q?St=FCss?= <frank.stuess () stuess ! de>
Date:       2005-06-30 6:20:28
Message-ID: 200506300820.28753.frank.stuess () stuess ! de
[Download RAW message or body]


thanks for all advice. As mentioned before in this list by another smart one, 
a conveniend way was this: 
in designer i generate a custom widget with class QHBox and policy 'expanding' 
and then use it as a placeholder. My final signal/event catching widget is 
constructed 'by hand' as child of this placeholder. This works out fine for 
me.

Been three days to this list and got two problems solved - really great!

Frank


Am Mittwoch, 29. Juni 2005 20:44 schrieb Torsten Marek:
> Frank Stüss schrieb:
> >>I'm not sure if that's really what you want, but if you'd like to use
> >>qt-designer and hand-coded additions at the same time, you can create
> >>your UI / widgets using qt-designer and then subclassing that UI in
> >>another file and overload the (paint)event. That way you can still
> >>change the UI without having to re-merge your changes everytime you
> >>recompile the .ui files.
> >
> > Thanks. Got it. But what if i don't want to overload the overall
> > paintEvent of the UI but only the one of a part of it, eg. a QFrame or a
> > QHbox? Shure I would subclass QFrame and overload the event but how can I
> > put it into the 'designed' code, since my UI still uses QFrame and not
> > the subclass of it.
> >
> > I like to do some simple drawLines on a QFrame not using any extension
> > packages, only what is shipped with QT and pyqt.
> >
> > Thanks again for any help.
>
> Hi,
>
> you might want to have a look at
> http://www.diotavelli.net/PyQtWiki/DragAndDropWithPytQt
>
> and adapt it to your needs.
>
> greetings
>
> Torsten

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

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

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