title: how to set geometry of an element in css in qt5
body: <p>I am using qt5-creator designer and iam using css for customizing QPushButtons in a frame
  i want to set geometry of buttons with css
  i tried this but this is not working for me</p>
  
  <pre><code>.col-1-row-2 { position: fixed; top: 500 px; left: 500 px; }
  </code></pre>
  
  <p>i replaced <code>fixed</code> with <code>absolute</code> and <code>relative</code> but nothing changed.
  how can i set or change default geometry of each element in its css class?
  and frames geometry?</p>
  
  <p>i use this function to apply the css to the project</p>
  
  <pre><code>void MainWindow::loadCss()
  {
  int rows = 7, mrows = 4;
  int btnWidth = width() / 5,
      btnHeight = height() / (rows + 1);
  
  QString css = "", temp = ".col-%1-row-%2 { top: %3 px; %4: %5 px; }";
  for (int i = 1 ; i &lt;= mrows ; ++i)
  {
      css += temp.arg(1).arg(i).arg((rows - mrows + i - 1) * btnHeight).arg("left").arg(40);
      css += temp.arg(2).arg(i).arg((rows - mrows + i - 1) * btnHeight).arg("right").arg(40);
  }
  
  QFile file(":/css.qss");
  file.open(QFile::ReadOnly);
  qApp-&gt;setStyleSheet(QString::fromLatin1(file.readAll())
                      .replace("${fullWidth}", QString::number(width()))
                      .replace("${fullHeight}", QString::number(height()))
                      .replace("${btnHeight}", QString::number(btnHeight))
                      .replace("${btnWidth}", QString::number(btnWidth))
                      + css
                      );
  file.close();
  }
  </code></pre>
  
  <p>qss file</p>
  
  <pre><code>* {
  font-size: 40px;
  /* qproperty-alignment: AlignCenter; */
  background-color: none;
  }
  
  QFrame {
  position: fixed;
  top: 0;
  left: 0;
  min-width: ${fullWidth} px;
  min-height: ${fullHeight} px;
  max-width: ${fullWidth} px;
  max-height: ${fullHeight} px;
  }
  
  QPushButton {
  min-width: ${btnWidth} px;
  min-height: ${btnHeight} px;
  }
  
  #MainWindow {
  border-image: url(:/images/sky.jpg) 0 0 0 0 stretch stretch;
  border-width: 0px;
  }
  </code></pre>
  
  <p>QFrame css does not working either.</p>