Results 1 to 8 of 8

Thread: resizing events of a custom widget in a layout

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    25
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: resizing events of a custom widget in a layout

    Ok, never mind that.

    Right now when I run the program I get the error

    QLayout "unnamed" added to protein "unnamed", which already has a layout

    is there a reason that this is happening.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: resizing events of a custom widget in a layout

    Quote Originally Posted by Rooster View Post
    Right now when I run the program I get the error

    QLayout "unnamed" added to protein "unnamed", which already has a layout

    is there a reason that this is happening.
    In Qt 3 layouts are installed by passing the parent widget to QLayout constructor. Most likely you pass same widget by accident to two different layouts. Thus, the latter attempt gives you a warning because you can't install two layouts on same widget.
    J-P Nurmi

Similar Threads

  1. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  2. Custom widget
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 28th January 2008, 14:06
  3. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 15:38
  4. Problem with custom container widget
    By MrGarbage in forum Qt Tools
    Replies: 4
    Last Post: 25th August 2007, 03:37
  5. Custom tab widget question
    By PrimeCP in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 11:17

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.