Using the same way - you can't, as drawing is only allowed in paint events. But you can draw a rubber band of any shape in general. Just do it during a proper event call (or use a dedicated graphics item).
Using the same way - you can't, as drawing is only allowed in paint events. But you can draw a rubber band of any shape in general. Just do it during a proper event call (or use a dedicated graphics item).
XOR mode has been reintroduced with Qt 4.5. So on platforms, where Qt::WA_PaintOutsidePaintEvent is supported ( X11) you can use it like with Qt3. On platforms like Windows you can post a dummy paint event, catch it using an event filter and paint there.
Uwe
Bookmarks