Qt-interest Archive, March 2002
QScrollView strange behavior???
Message 1 in thread
Hi,
I've got a strange behavior in QScrollBox object.
Here is the steps that I did.
I create new form. The form has the QScrollBox and QFrame object. The
QFrame object contain some layouts and components. Sometime I have to
put the QFrame object to the viewport() of the QScrollBox. I do follow
QScrollView* scWin; // the QScrollBox object
QGridLayout* scWinViewPortLayout;
QFrame* fra_EdtReg; // the QFrame object
..........
.....
scWinViewPortLayout = new QGridLayout( scWin->viewport(), 1, 1, 11, 6, "scWinLayout");
scWin->addChild(fra_EdtReg);
scWinViewPortLayout->addWidget(fra_EdtReg, 0, 0);
scWinViewPortLayout->setOrigin(QGridLayout::TopLeft);
Then I get following:
First, I can't see very bottom of the frame
Second, if I scroll vertical scroller to the very end of the
QScrollView and then I maximize the window I get wrong positioned
scroller and offseted (0,0) corner (It's moved a bit down)
What wrong I do?????
What should I do to have right results????
--
[ signature omitted ]