Results 1 to 3 of 3

Thread: Shapemode

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    102
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Shapemode

    The mode QGraphicsPixmapItem::BoundingRectShape has this kind of behaviour:

    "The shape is determined by tracing the outline of the pixmap. This is the fastest shape mode, but it does not take into account any transparent areas on the pixmap."

    How can i have a different behaviour? I'd like to take into account also the transparent areas on a pixmap so when i call the function itemAt(), it will return the item even if I put the mouse cursor on the transparent area.

    perhaps i have to use the setMask() function.....?? How can i use it?
    Last edited by dreamer; 2nd May 2008 at 15:10. Reason: updated contents

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.