Re: QWidget Shyness Syndrome
one more symptoms if i remove this line
Code:
holder->adjustSize(); //found in addInfo
it has the same effect i will see a blank groupBox. I think it has something to do with repainting my holder widget. what do you think guys?
baray98
Re: QWidget Shyness Syndrome
Here you go(untested)
Code:
{
infoLayout->addWidget(lblValue);
leValue->setReadOnly ( true );
leValue->setAlignment(Qt::AlignRight);
infoLayout->addWidget(leValue);
infoLayout->addStretch();
mainLayout->addWidget(w);
mainLayout->update();
}
2 Attachment(s)
Re: QWidget Shyness Syndrome
the shyness is still there marcel but when i pull (skip)my scrollArea out of the pic i will see my info fine... this is really made me pull my hair today ...
i am attaching my files in question hoping you can help me
baray98
Re: QWidget Shyness Syndrome
i think my problem is that my holder widget won't adjust it size after adding my lineEdits and labels. I already added the resize() for holder widgets but still no effect. what else can i do.
baray98
Re: QWidget Shyness Syndrome
my solution was to re-assign the widget holder again in scrollArea everytime i add some more widgets in my holder.
Code:
QWidget* holder
= scrollArea
->takeWidget
()
// add stuff to holder
scrollArea->setWidget(holder)
baray98 (kudos to marcel)