Results 1 to 6 of 6

Thread: Scrolling QGraphicsView and QGraphicsScene

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Scrolling QGraphicsView and QGraphicsScene

    My player does not support .ogv files yet

    So show us how do you implement CSquare class?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. #2
    Join Date
    Jul 2010
    Posts
    72
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanked 3 Times in 3 Posts

    Default Re: Scrolling QGraphicsView and QGraphicsScene

    Thank you. Santosh is absolutely right - the problem was in custom function in the inherited class:

    Qt Code:
    1. QRectF boundingRect() const;
    To copy to clipboard, switch view to plain text mode 

    That should return valid rectangle. Now I fixed that in my project and m going to remove the video.

    Thank you very much.

    http://realvirtualdevelopment.co.nr.

Similar Threads

  1. QGraphicsView and Scrolling
    By validator in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2017, 00:27
  2. QGraphicsScene and View scrolling problem
    By ithinkso in forum Newbie
    Replies: 2
    Last Post: 2nd June 2011, 11:35
  3. Replies: 1
    Last Post: 15th March 2010, 08:51
  4. QGraphicsView scrolling problem with 4.3.0
    By hb in forum Qt Programming
    Replies: 8
    Last Post: 30th August 2007, 22:18
  5. Replies: 4
    Last Post: 25th April 2007, 16:54

Tags for this Thread

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.