PDA

View Full Version : Window Layout issue.



bunjee
26th August 2008, 21:46
Hey trolls,

I have two cases :

CASE A:

layout->addWidget(topBar, 0, Qt::AlignTop);
layout->addWidget(panel, 10);
panel->hide();
q->resize(400, 300);

What I get: my window and my topBar widget aligned in the center.

CASE B:

layout->addWidget(topBar, 0, Qt::AlignTop);
layout->addWidget(panel, 10);
q->resize(400, 300);

What I get: my window and my topBar widget aligned at the top.

Why does my widget doesn't get aligned properly on CASE A ?