Results 1 to 2 of 2

Thread: How to increase size of QGraphicsView Dynamically

  1. #1
    Join Date
    Jan 2009
    Posts
    12
    Qt products
    Qt4

    Default How to increase size of QGraphicsView Dynamically

    Hi,
    I have a mainwindow with QHBoxLayout, where in QHBoxLayout there are two items One is toolbox and other is my QGraphicsView which renders a scene item with a fixed size.
    Now I want to increase the size of that view if the user click the QGraphicsItem out of the boundry of scene.
    Is there any property for view to increase the sceneRect dynamically.
    with regards,
    srik.
    Last edited by Kingofhearts_sri; 23rd January 2009 at 07:35.

  2. #2
    Join Date
    Aug 2008
    Posts
    60
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to increase size of QGraphicsView Dynamically

    did u tried QGraphicsView::resize() ?

Similar Threads

  1. Increase the size of radio buttons
    By arunvv in forum Qt Programming
    Replies: 7
    Last Post: 24th January 2009, 00:09
  2. Problem determining size of QGraphicsView
    By Bocki in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2008, 14:54
  3. Setting the scene size in QGraphicsView
    By Valheru in forum Newbie
    Replies: 5
    Last Post: 11th November 2007, 15:03
  4. Size of QGraphicsView
    By IsleWitch in forum Newbie
    Replies: 10
    Last Post: 10th October 2007, 12:09
  5. Dynamically changing QGroupBox size
    By T4ng10r in forum Qt Programming
    Replies: 5
    Last Post: 30th March 2007, 15:02

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.