Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2007-07

Missing classes - urgent

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko

Hi,

Den, some time ago Paul asked about adding QItemDelegate and if possible QAbstractItemDelegate into bindings. At that time it was ok to wait with such addon, but now , we cannot continue fixing lazarus ide or any ownerdraw-ed ctrl without this classes, we get maximum for pure qt, but now ownerdrawing is needed for eg: comboboxes , listbox etc ... I've already try to paint such things via paintEvent(), but it doesn't look good , flickering , twice paint over ctrl .. in one word - it looks like a s***t :) so, pls, if U can add those classes inside bindings , we'll be apreciated :)

tnx
zeljko

Den Jean
to zeljko
zeljko wrote
things via paintEvent(), but it doesn't look good , flickering , twice paint

Overriding paint is really not necessary, remember the closeevent stuff, remember to eat your event. This will remove the flicker.

But I will look into the sizeHint thing, because without subclassing you cannot do it. Paint is not necessary, but can be done for convenience for that class.

Remember that for other classes it is bull to add it. If you add it for QWidget (QLCLWidget with overriden Paint), you do not have overriden Paint for QAbstractButton, because QAbstractButton does not inherit from QLCLWidget. etc etc ...

regards,

Den Jean

zeljko
to Den Jean
Den Jean wrote 7 lines
On Friday 27 July 2007 13:39:24 zeljko wrote: > things via paintEvent(), but it doesn't look good , flickering , twice > paint Overriding paint is really not necessary, remember the closeevent stuff, remember to eat your event. This will remove the flicker.

I know, but I tried the case before I decided to send this post :)

Show quoted text 8 lines
But I will look into the sizeHint thing, because without subclassing you cannot do it. Paint is not necessary, but can be done for convenience for that class. Remember that for other classes it is bull to add it. If you add it for QWidget (QLCLWidget with overriden Paint), you do not have overriden Paint for QAbstractButton, because QAbstractButton does not inherit from QLCLWidget. etc etc ...

All of that is well known but we come in the front of the wall :)

tnx