Non-resizeable QDialog with fixed size in Qt?
问题 I have a Qt dialog application. Now I dont want that dialog to be resizeable. I am not sure how to achieve this. I tried a bunch of things but still when the dialog launches this dialog can be resized. What is the property that i should set to disable the dialog/Widget resize. I also tried setSizePolicy(QSizePolicy::Fixed); But i get an error saying.. source\nimcac_settingsMain.cpp(36) : error C2248: **'QSizePolicy::QSizePolicy' : cannot access private member declared in class 'QSizePolicy'**