Does layout->children() not include QWidgets added with addWidget?
Qt Code:
formLayout->addWidget(wid); QList<QObject*> blah = formLayout->children(); qDebug() << blah << " - blah - " << blah.size();To copy to clipboard, switch view to plain text mode
Size is 0 and blah is empty.
However, its parent childern does include the added widget. So ->addWidget() doesn't set the layout as parent but the layout's parent? Are layouts then assumed to never be parents?
How can I add QWidgets to a layout so that I can use findChild by its name?
Cheers
Bookmarks