If I show it one, two... three times before getting the size, i've got the same result.
I'll try "adjustSize()"![]()
If I show it one, two... three times before getting the size, i've got the same result.
I'll try "adjustSize()"![]()
You can override showEvent() and set the size there if you want.
Oki, thanks.
I override the showEvent and now it works fine.
I set fit the columns/rows size to the content, and then I fit the QDialog to the QTable content size.
I don't understand why that didn't work before.
I'm sure that the QDialog was shown before trying to resize it.
Thanks everybody![]()
How did you make sure it was shown before resizing it?
Because I show it with a button,
and then I push another button to resize it ^_^
Bookmarks