Hi,
Thanks for the QMetaObject hint - I'll look at it in detail...
Another problem I have is that I create an object and add it to a QScrollArea like this:
scrollAreaWidgetContents->layout()->addWidget(date);
scrollAreaWidgetContents->layout()->addWidget(date);
To copy to clipboard, switch view to plain text mode
What would be the best way to remove objects from the QScrollArea, which have a pointer stored in a QList<QWidget*>?
I've tried
for(int i=0;i<formElements.length();++i) scrollAreaWidgetContents->layout()->removeWidget(formElements.at(i));
for(int i=0;i<formElements.length();++i) scrollAreaWidgetContents->layout()->removeWidget(formElements.at(i));
To copy to clipboard, switch view to plain text mode
but end up with a segfault.
Thanks for your help,
Reagards,
Bill
Bookmarks