QHBoxLayout and QTreeWidgetItem
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?
This is a total shot in the dark, but perhaps check if your QTreeWidget has the "uniformRowHeights" flag set?