title: Non-resizeable QDialog with fixed size in Qt?
body: <p>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. </p>
  
  <p>What is the property that i should set to disable the dialog/Widget resize.</p>
  
  <p>I also tried</p>
  
  <pre><code>setSizePolicy(QSizePolicy::Fixed);
  </code></pre>
  
  <p>But i get an error saying.. </p>
  
  <pre>
  source\nimcac_settingsMain.cpp(36) : error C2248:
  **'QSizePolicy::QSizePolicy' : cannot access private member declared in class 'QSizePolicy'**
          p:\ThirdPartyExports\Qt\export\4.3\4.3.1f14\include\QtGui\../../src\gui\
  kernel\qsizepolicy.h(177) : see declaration of 'QSizePolicy::QSizePolicy'
          p:\ThirdPartyExports\Qt\export\4.3\4.3.1f14\include\QtGui\../../src\gui\
  kernel\qsizepolicy.h(34) : see declaration of 'QSizePolicy'
  </pre>
  
  <p>Kindly help me out with this.</p>