Results 1 to 5 of 5

Thread: Grid in QGraphicsScene to fit in QGraphicsView while expanding

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2014
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Grid in QGraphicsScene to fit in QGraphicsView while expanding

    Hi,

    this time, when I drew 1000 squares grid with 1pixel each square, this doesn't fit in my GraphicsView,

    I got blank scene... my screen resolution is around 1000 pixels, if I reduced to 800 squares, I got all my grid back.

    What I don't understand is I can't draw more than 1000 pixels whatever my GraphicsView's size...

    bellow 800 squares fit correctly in 300pixels GraphicsView's size
    with 1000 squares all I got is blank even with 900 pixels GraphicsView's size(with my view expanded at maximum)
    800.PNG

    Any tips please ?
    Last edited by phenom64; 9th May 2014 at 09:39.

Similar Threads

  1. Replies: 1
    Last Post: 11th July 2011, 20:39
  2. How can I stop expanding a QGraphicsScene?
    By emrares in forum Newbie
    Replies: 2
    Last Post: 2nd November 2010, 15:27
  3. QGraphicsScene auto expanding.
    By miqqo in forum Qt Programming
    Replies: 2
    Last Post: 7th July 2010, 21:56
  4. Replies: 5
    Last Post: 21st January 2010, 15:55
  5. How Coulld I create a Grid Layout on a QGraphicsScene
    By c_srikanth1984 in forum Qt Programming
    Replies: 3
    Last Post: 12th January 2009, 10:18

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.