Unsolved QTableWidget with QPushbutton inside: resize problem
-
I'm an absolute beginner of Qt. I have the following MWE.
#include <QApplication> #include <QTableWidget> #include <QPushButton> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTableWidget table; table.setRowCount(2); table.setColumnCount(3); QPushButton button("Push me"); table.setCellWidget(1, 1, &button); table.show(); return a.exec(); }
I notice that when I resize the column of the table holding the mousebutton down the PushButton remain of the same dimension and it adjust to the correct size only when the mousebutton is released. Is this a wanted feature. How can I avoid it?
-
Hi and welcome to devnet,
What version of Qt ?
On what platform ? -
Hi
Win 10, Qt 5.14 -
Hi,
I have the following setups- Qt 5.15.0 on Linux
- Qt 5.15.0 on Linux with PySide2
- Qt 5.15.0 on Windows
I always get the same result.
Do you think it is a regression? -
Looks like it yes.