Hi there,
I created a QGridLayout and willed it with several GroupBoxes. To update the boxes I planned to replace them since I could not find a possibility to change a label within the GroupBox that is part of the QGridLayout.
In the documentation I found this: QLayoutItem * QLayout::replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options = Qt::FindChildrenRecursively) but I do not understand it. *to is clear, this is my newly created widget but how do I get the *from widget? I know the position in the grid but there is no function that gives me a widget, they only give me items, which is not working.
Can anybody post some example code that shows how this function is used?
Thanks a lot!
Bookmarks