Results 1 to 2 of 2

Thread: No matching function for call to QVBoxLayout::addWidget(QHBoxLayout*&)

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question No matching function for call to QVBoxLayout::addWidget(QHBoxLayout*&)

    Hi guys

    I am trying to get the attached layout.
    I get the following error:
    "No matching function for call to QVBoxLayout::addWidget(QHBoxLayout*&)"
    What am I doing wrong. I am very new to this. I have also attached the code.
    Thanks
    Nozdlax
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: No matching function for call to QVBoxLayout::addWidget(QHBoxLayout*&)

    Use addLayout() to add an inner layout (the addWidget is for widgets)

Similar Threads

  1. about no matching function for call to
    By Alain Delon in forum General Programming
    Replies: 1
    Last Post: 5th March 2011, 21:30
  2. Replies: 1
    Last Post: 1st December 2010, 11:02
  3. no matching function for call to setupUi
    By ctote in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2010, 15:20
  4. Replies: 7
    Last Post: 16th August 2009, 09:03
  5. No Matching function to call...
    By weepdoo in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 17:30

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.