You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, September 26th 2016, 5:23pm

force the size of a (QTable)Widget

Hi all.
I need to force the height of a QTableWidget. It's a particular one : only the headers are displayed and the number of rows is 0. It's embedded in a QVBoxLayout. The goal I have to achieve is the disparition of the white zone and I can't.
I tried :
- table->setMaximumHeight(5);
- table->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
Why can't I remove it ?
Cheers.


Similar threads

Used tags

QTableWidget