title: Is there a way in Qt to get all widgets on a form?
body: <p>For example I have 20 widgets on a form. I need to resize them based on screen resolution so here's my method</p>
  
  <pre><code>newHeight=(desktopHeight * ui-&gt;widget1-&gt;height())/768;
  newWidth=(desktopWidth * ui-&gt;widget1-&gt;width())/1024;
  newY=(desktopHeight * ui-&gt;widget1-&gt;y())/768;
  newX=(desktopWidth * ui-&gt;widget1-&gt;x())/1024;
  ui-&gt;widget1-&gt;setGeometry(newX,
                newY,
                newWidth,
                newHeight);
  newFontSize=(desktopHeight * ui-&gt;widget1-&gt;font().pointSize())/768;
  ui-&gt;widget1-&gt;setFont(QFont ("Ubuntu",newFontSize, QFont::Bold));
  </code></pre>
  
  <p>And I will repeat this method for the remaining 19 widgets. Is there a way to get all of the widgets and create a do while statement and create a function that the widgets are the parameter?</p>