Results 1 to 2 of 2

Thread: QGraphicsView and showing entire item in it

  1. #1
    Join Date
    Feb 2007
    Location
    Wroclaw, Poland
    Posts
    72
    Thanks
    6
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QGraphicsView and showing entire item in it

    In subbclassed QGraphicsScene I created table from 100 small rectangles in QGraphicsGridLayout inside main, parent item. View - which shows my my scene - is placed in QMainWindow.
    I want that table in view will expand to fill as much of view space as possible. Because size of view will be changing I can't use hardcoded values. I think that i could use zooming in view to automatically, on start or load of data inside scene, scale everything.
    Could you point - how to achieve this?

  2. #2
    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: QGraphicsView and showing entire item in it


  3. The following user says thank you to aamer4yu for this useful post:

    T4ng10r (25th March 2010)

Similar Threads

  1. Replies: 1
    Last Post: 16th December 2009, 02:48
  2. QGraphicsView to follow Item?
    By sven-kt in forum Qt Programming
    Replies: 5
    Last Post: 25th August 2009, 08:40
  3. MDI display Item in QGraphicsView
    By wisconxing in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2008, 00:11
  4. QGraphicsView and item focus
    By Micawber in forum Qt Programming
    Replies: 3
    Last Post: 22nd June 2007, 20:36
  5. Showing Pixmap as a QListWidget Item
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 1st February 2007, 12:25

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.