Results 1 to 11 of 11

Thread: Setting focus on Canvas

Hybrid View

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

    Default Re: Setting focus on Canvas

    how about viewportToContents() ?

  2. #2
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    14
    Thanked 4 Times in 4 Posts

    Default Re: Setting focus on Canvas

    Quote Originally Posted by munna
    how about viewportToContents() ?
    viewportToContent: "Translates a point (vx, vy) on the viewport() widget to a point (x, y) in the contents."

    How does it help me... I don't know the point on the canvas to set focus to...
    Its this way that i am shown a part of the canvas.. now when i zoom the canvas, the part of the canvas which i was viewing before should be the one which i am viewing just that it is zoomed....
    i should be nearby the same coordinate set where i was earlier...
    but right now it just gets lost...

    thank you,

    with regards,
    Kapil
    All you have to decide is what to do with the time that is given to you

Similar Threads

  1. Replies: 2
    Last Post: 5th March 2009, 10:34
  2. Replies: 0
    Last Post: 25th February 2009, 07:15
  3. Force focus to a QTabWidget page's widget
    By thomaspu in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 06:54
  4. Focus issues / Setting multiple focus
    By ComputerPhreak in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2007, 06:09
  5. Tab/Enter focus problem
    By b1 in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2006, 23: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
  •  
Qt is a trademark of The Qt Company.