PDA

View Full Version : Flood fill in QT3 (linux)



guestgulkan
21st January 2006, 15:26
I cannot seem to find a flood fill in QT3 on linux.
I checked QPainter and can only find FillRect.

wysota
21st January 2006, 18:33
Qt doesn't allow flood filling. Use regions and/or clip your painter and then paint over it (meaning you have to know what you want to fill). A flood-fill algorithm is very expensive. Of course you can implement one yourself :)

yop
21st January 2006, 18:40
Qt4 uses paths which are very convenient. Of cource that is if your app is in an entry state so that porting can be done easily.