Results 1 to 2 of 2

Thread: Unable to properly implement a QRubberBand

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy Unable to properly implement a QRubberBand

    Hello. I am using PyQt, I hope that doesn't mean I can't ask questions here.

    I have attached a small program, and I expect it to draw a rubberband on a QLabel. However, apparently everytime the MouseMoveEvent is processed, the origin of the rubberband is reset to the current event position therefore I am unable to succesfully achieve a proper rubberband.

    Please help. Thanks in advance.
    Attached Files Attached Files
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Unable to properly implement a QRubberBand

    Well I searched yet again and found the workaround at this old thread. Thanks to Jacek. I am thinking of raising this issue on the Python-Qt4 mailing list. I am now attaching the working version just for reference's sake.
    Attached Files Attached Files
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

Similar Threads

  1. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 06:34

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.