title: How do I resize a dialog according to the size of a table in pyqt?
body: <p>I have a pop-up dialog and I want to resize it according to the size of a table. Specifically, I want the table to display all its rows which are created dynamically without any scroll bars needed.</p>