I apologize for my English, since this first message in English.
There's a certain analog of the playlist in a videowidget.
scrollAreaWidgetContents
= new QWidget();
scrollArea->setWidget(scrollAreaWidgetContents);
scrollArea = new QScrollArea();
scrollAreaWidgetContents = new QWidget();
scrollArea->setWidget(scrollAreaWidgetContents);
To copy to clipboard, switch view to plain text mode
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:
MyWidget *selectedWidget = findWidget(id);
selectedWidget->mark();
_ui->scrollArea->ensureWidgetVisible(selectedWidget , 0, 0);
MyWidget *selectedWidget = findWidget(id);
selectedWidget->mark();
_ui->scrollArea->ensureWidgetVisible(selectedWidget , 0, 0);
To copy to clipboard, switch view to plain text mode
After that necessary widget became selected (after mark()), but QScrollArea to it it was not scrolled.
Bookmarks