PDA

View Full Version : scrolling a QScrollArea resets geometry().x,y of its child to 0. Workaround possible?



planetLars
19th April 2010, 17:29
Hello,

using the scrollbars of a QScrollArea resets the geometry().x and geometry().y of its child-widget to 0.

Ie.:


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.

Can I have QScrollArea not do this? How? Is there a callback or event listener I could add?

Thanks!

Lars