Results 1 to 7 of 7

Thread: How to render QGraphicsScene/View to FullScreen??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to render QGraphicsScene/View to FullScreen??

    Try this -
    Use QGraphicsView::setSceneRect to set the scene area and then show the view in full screen.

  2. #2
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to render QGraphicsScene/View to FullScreen??

    Thanks again aamer. But it sets scene to say some 3/4th fullscreen and shows scrollbars if it is bigger. I tried setting scrollbars off but even then screen is 3/4th but navigation happens within that and not extending to fullscreen. Please let me know if anything can be done with this.

  3. #3
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to render QGraphicsScene/View to FullScreen??

    Please let me know if anybody has solution for this.

  4. #4
    Join Date
    May 2010
    Posts
    19
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: How to render QGraphicsScene/View to FullScreen??

    myScene->setSceneRect(myScene->itemsBoundingRect());
    myView->setSceneRect(myScene->sceneRect());

  5. The following user says thank you to Tito for this useful post:

    Aruz (26th August 2012)

Similar Threads

  1. Replies: 8
    Last Post: 7th November 2012, 19:20
  2. QGLWidget inside QGraphicsScene/View
    By h123 in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2009, 08:46
  3. QGraphicsScene render thread
    By nicolas1 in forum Qt Programming
    Replies: 7
    Last Post: 26th October 2008, 12:57
  4. QGraphicsScene render() crashes
    By iebele in forum Qt Programming
    Replies: 0
    Last Post: 29th April 2008, 13:38
  5. Working with coordinates (QGraphicsScene/view)
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 27th March 2008, 08:35

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.