Hello,
using the scrollbars of a QScrollArea resets the geometry().x and geometry().y of its child-widget to 0.
Ie.:
scroller->setWidget(scrollable);
scrollable->setGeometry(10,10,100,100);
// scroll and scrollable->geometry().x(),y() is 0,0.
QWidget scrollable = new QWidget();
QScrollArea scroller = new QScrollArea();
scroller->setWidget(scrollable);
scrollable->setGeometry(10,10,100,100);
// scroll and scrollable->geometry().x(),y() is 0,0.
To copy to clipboard, switch view to plain text mode
Can I have QScrollArea not do this? How? Is there a callback or event listener I could add?
Thanks!
Lars
Bookmarks