[Qt-interest] QVBOxLayout problem with QSCrollArea and QWidget
Sujan Dasmahapatra
sdh at lmwindpower.com
Tue Mar 15 14:22:23 CET 2011
Dear Friends
I have three widgets as below.
void MainWindow::Somefunc()
{
CHeadWidget * header = new CHeadWidget(this,showcasepage);
PageForGraph *plotpage = new PageForGraph(this,showcasepage);
QWidget * showcasepage = new QWidget(this);
QVBoxLayout *layout = new QVBoxLayout;
layout->setDirection(QBoxLayout::TopToBottom);
layout->addWidget(header);
layout->addWidget(plotpage);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
showcasepage->setLayout(layout);
QStackedWidget *center = new QStackedWidget;
center->addWidget(showcasepage);
center->setCurrentWidget(showcasepage);
}
/////////////////////////////////////////////////////////////////
But with this I cannot see the header at the top. I can only see the
plotpage. Any help would be appreciated. Thanks sujan
Kind Regards,
Sujan Dasmahapatra
Project Leader, Aero Group
Aero Group
Tel +91 80 66470248
Mob
sdh at lmwindpower.com <mailto:%25EMAIL%25>
LM Wind Power Blades
lmwindpower.com
Together we capture the wind to power a cleaner world
________________________________
This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110315/d4eba7e7/attachment.html
More information about the Qt-interest-old
mailing list