Results 1 to 5 of 5

Thread: [QGraphicsView] Size stretch

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Apr 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [QGraphicsView] Size stretch

    Dear Alex, thanks for your reply.

    I do add the views to a layout. The code in the first post is followed by:

    Qt Code:
    1. self.rightlayout.addWidget(self.qlist)
    2. self.rightlayout.addWidget(self.qinfow)
    3. self.qcheckbox = QtGui.QCheckBox("Hide convergences")
    4. self.rightlayout.addWidget(self.qcheckbox)
    5. self.connect(self.qcheckbox, QtCore.SIGNAL('stateChanged(int)'), self.reflexInfo.convergences_toggled)
    6. self.mainlayout.addWidget(self.splitterwidget,5)
    7. self.mainlayout.addLayout(self.rightlayout)
    8. self.setLayout(self.mainlayout)
    To copy to clipboard, switch view to plain text mode 

    Do you happen to know what I am doing wrong?
    Last edited by bspitz; 28th April 2011 at 11:49. Reason: formatting

Similar Threads

  1. QGraphicsView and QWebView size question
    By MarkoSan in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2009, 01:25
  2. How to increase size of QGraphicsView Dynamically
    By Kingofhearts_sri in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 08:54
  3. Problem determining size of QGraphicsView
    By Bocki in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2008, 14:54
  4. Setting the scene size in QGraphicsView
    By Valheru in forum Newbie
    Replies: 5
    Last Post: 11th November 2007, 15:03
  5. Size of QGraphicsView
    By IsleWitch in forum Newbie
    Replies: 10
    Last Post: 10th October 2007, 12:09

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.