QHBoxLayout and QTreeWidgetItem
tomas.soltys last edited by
I have encountered this behavior which I do not understand.
QWidget *layoutWidget = new QWidget;
QHBoxLayout *layout = new QHBoxLayout;
QPushButton *cancelButton = new QPushButton("Cancel");
QPushButton *okButton = new QPushButton("Ok");
QTreeWidgetItem *item = new QTreeWidgetItem(parent);
And the result is that the height of the row which contains two buttons is too small and buttons are not fully visible.
Can anyone explain me what is wrong with the code above?
goblincoding last edited by
This is a total shot in the dark, but perhaps check if your QTreeWidget has the "uniformRowHeights" flag set?