Hey trolls,

I have two cases :

CASE A:
Qt Code:
  1. layout->addWidget(topBar, 0, Qt::AlignTop);
  2. layout->addWidget(panel, 10);
  3. panel->hide();
  4. q->resize(400, 300);
To copy to clipboard, switch view to plain text mode 

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

CASE B:
Qt Code:
  1. layout->addWidget(topBar, 0, Qt::AlignTop);
  2. layout->addWidget(panel, 10);
  3. q->resize(400, 300);
To copy to clipboard, switch view to plain text mode 

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 ?