Try this:
void FrameInfo
::addInfo(QString infoName,
double val
) {
QHBoxLayout* infoLayout
= new QHBoxLayout;
// (holder); <-- remove parent, holder already has a layout installed (produces warning) ...
holder->adjustSize(); // <-- add this as last statement of addInfo()
}
void FrameInfo::addInfo(QString infoName, double val)
{
QHBoxLayout* infoLayout = new QHBoxLayout; // (holder); <-- remove parent, holder already has a layout installed (produces warning)
...
holder->adjustSize(); // <-- add this as last statement of addInfo()
}
To copy to clipboard, switch view to plain text mode
Bookmarks