[PyQt] Problem with resizing rubberband
Attila Csipa
pyqt at csipa.in.rs
Fri May 8 11:32:27 BST 2009
On Friday 08 May 2009 11:45:53 Shriramana Sharma wrote:
> rg = self . rubberBand . geometry ()
> if self . tweakingpart == "topLeft" : rg .
> setTopLeft ( pt )
Not sure if this is your problem, but you should set geometries with
setGeometry(geom)
geometry() is
const QRect & geometry () const
My C is rusty like hell, but in the C version you're making a copy straight
off (QRect r = geometry()...). So you have QRect& in C in and const QRect& in
python which is not exactly the same :) Again, take this as coming from a
person who hasn't touched c++ in about 6 years.
More information about the PyQt
mailing list