Results 1 to 3 of 3

Thread: Flood fill in QT3 (linux)

  1. #1
    Join Date
    Jan 2006
    Location
    Gloucester, UK
    Posts
    18
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Flood fill in QT3 (linux)

    I cannot seem to find a flood fill in QT3 on linux.
    I checked QPainter and can only find FillRect.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Flood fill in QT3 (linux)

    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

  3. #3
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Flood fill in QT3 (linux)

    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.

Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 09:03
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.