Results 1 to 3 of 3

Thread: Strange visual problem in a graphics scene

  1. #1
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Strange visual problem in a graphics scene

    I'm having a strange problem... something I can't understand.

    I have a graphicsscene, graphicsView and a graphicsItem, when the key "O" is pressed it has to move few pixels to its left.

    The first time I do it, it works. Releasing the button should stop it, right.

    But the next time I want to move it, first, it moves few pixels to its right. Something weird; I write its position on the console and it's alright, all the scenePos() are the expected values but graphically I see a weird first movement to its right(before continuing moving to its left, as desired).



    I attach you the small compilable example.

    thanks

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Strange visual problem in a graphics scene

    I've tried it, but don't see such behaviour. For what it's worth, I'm on 4.6.0.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Strange visual problem in a graphics scene

    Maybe I explained it wrong.

    Just press O button, the rectangle will move to its left and then release the key. Press again and it should move to its right a little bit (maybe 20 pixels) before continue to its left.

    By the way, I'm with 4.5.0

Similar Threads

  1. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  2. Strange shortcut problem
    By blukske in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2007, 10:26
  3. graphics view FitInView problem
    By aamer4yu in forum Qt Programming
    Replies: 6
    Last Post: 25th January 2007, 10:24
  4. Strange Problem with JPEG Support on win XP
    By caligula in forum Installation and Deployment
    Replies: 3
    Last Post: 18th September 2006, 10:36
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.