Results 1 to 5 of 5

Thread: help with QPainter::setCompositionMode()

  1. #1
    Join Date
    Jan 2006
    Location
    Florida
    Posts
    24
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question help with QPainter::setCompositionMode()

    I'm just playing around with QPainter and get the following message on the console:

    QPainter::setCompositionMode(), composition modes not supported on device

    whenever I use QPainter::setCompositionMode(). For example, I tried

    painter.setCompositionMode(QPainter::CompositionMo de_SourceOver);

    What else do I need to set up on my system. I am using Qt 4.0.1 on an X11 based linux box

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help with QPainter::setCompositionMode()

    You can only set the composition mode for QPainter objects that operates on a QImage.

  3. #3
    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: help with QPainter::setCompositionMode()

    That's not exactly true. You can use composition modes for QPainter if you have the Compositemodule enabled in your X server.

  4. #4
    Join Date
    Jan 2006
    Location
    Florida
    Posts
    24
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help with QPainter::setCompositionMode()

    Quote Originally Posted by wysota
    That's not exactly true. You can use composition modes for QPainter if you have the Compositemodule enabled in your X server.
    I'm a bit of a linux idiot, would you have any ideas on how to do that?

  5. #5
    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: help with QPainter::setCompositionMode()


  6. The following user says thank you to wysota for this useful post:

    thawkins (26th May 2006)

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.