Results 1 to 8 of 8

Thread: QGridLayout refresh

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QGridLayout refresh

    Quote Originally Posted by Pawello View Post
    QWidget::setLayout: Attempting to set QLayout "" on QGroupBox "", which already has a layout
    I don't know how to solve it
    The error message is self-explanatory. Hint: read the documentation of the method it mentions.

  2. #2
    Join Date
    Jul 2012
    Posts
    25
    Thanks
    10

    Default Re: QGridLayout refresh

    Quote Originally Posted by yeye_olive View Post
    The error message is self-explanatory. Hint: read the documentation of the method it mentions.
    I understand that this problem is connected with setLayout but this knowledge doesn't help me to solve it. Please help me to do this.

  3. #3
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QGridLayout refresh

    The documentation for QWidget::setLayout() -- have you read it? -- says that you must first delete a widget's layout before you can set another layout. You get the error message because you have not done so.

  4. The following user says thank you to yeye_olive for this useful post:

    Pawello (11th August 2012)

  5. #4
    Join Date
    Jul 2012
    Posts
    25
    Thanks
    10

    Default Re: QGridLayout refresh

    I've already find it out but thanks for help

Similar Threads

  1. Refresh Ui...?
    By steve.bush in forum Newbie
    Replies: 5
    Last Post: 21st March 2011, 05:21
  2. Replies: 2
    Last Post: 14th January 2011, 15:09
  3. Trying to refresh a QGridLayout
    By zlacelle in forum Qt Programming
    Replies: 5
    Last Post: 5th April 2009, 21:21
  4. Refresh TableModel
    By abbapatris in forum Qt Programming
    Replies: 8
    Last Post: 7th March 2008, 13:55
  5. Delete a QGridLayout and New QGridLayout at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 5th November 2007, 13:01

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.