PDA

View Full Version : No matching function for call to QVBoxLayout::addWidget(QHBoxLayout*&)



nozdlax
19th March 2011, 10:33
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

Zlatomir
19th March 2011, 10:57
Use addLayout() (http://doc.qt.nokia.com/latest/qboxlayout.html#addLayout) to add an inner layout (the addWidget is for widgets)