I apologize for my English, since this first message in English.
There's a certain analog of the playlist in a videowidget.
Code:
scrollArea->setWidget(scrollAreaWidgetContents);
After that I add in layout of scrollAreaWidgetContents (QVBoxLayout) many widgets.
How to do so that QScrollArea it was scrolled to necessary to me widget?
While I do so:
Code:
MyWidget *selectedWidget = findWidget(id); selectedWidget->mark(); _ui->scrollArea->ensureWidgetVisible(selectedWidget , 0, 0);
After that necessary widget became selected (after mark()), but QScrollArea to it it was not scrolled.