Hey trolls,
I have two cases :
CASE A:
layout->addWidget(topBar, 0, Qt::AlignTop);
layout->addWidget(panel, 10);
panel->hide();
q->resize(400, 300);
layout->addWidget(topBar, 0, Qt::AlignTop);
layout->addWidget(panel, 10);
panel->hide();
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:
layout->addWidget(topBar, 0, Qt::AlignTop);
layout->addWidget(panel, 10);
q->resize(400, 300);
layout->addWidget(topBar, 0, Qt::AlignTop);
layout->addWidget(panel, 10);
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 ?
Bookmarks