title: Qt Unable to set geometry
body: <p>I am receiving a warning in Qt about setting geometry every time I try to open a new window or Dialog. It even happens with <code>QDialogInput</code>. And I'm not trying to set the geometry, just calling the window already gives me a warning. Here's an example:</p>
  
  <p>main.cpp</p>
  
  <pre><code>QLineSeries *series = new QLineSeries();
  
  
  for(int i=0;i&lt;graphPoints;i++)
      series-&gt;append(i,(qrand()%5)+20);
  
  QChart *chart = new QChart();
  chart-&gt;legend()-&gt;hide();
  chart-&gt;addSeries(series);
  chart-&gt;createDefaultAxes();
  chart-&gt;setTitle("X vs Y teste");
  
  QChartView *chartView = new QChartView(chart);
  chartView-&gt;setRenderHint(QPainter::Antialiasing);
  
  QDialog *graph = new QDialog(this);
  QHBoxLayout *layout = new QHBoxLayout(graph);
  layout-&gt;addWidget(chartView);
  graph-&gt;setLayout(layout);
  graph-&gt;exec();
  </code></pre>
  
  <p>warning:</p>
  
  <pre><code>setGeometry: Unable to set geometry 116x30+619+380 on QWidgetWindow/'QDialogClassWindow'. Resulting geometry:  116x91+619+380 (frame: 8, 30, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 91x91, maximum size: 16777215x16777215).
  </code></pre>
  
  <p>This was not a problem until recently I tried to use <code>setGeometry(200,200,200,200)</code> and nothing happened.</p>
  
  <p>Any idea what this may be?</p>
  
  <h2>EDIT</h2>
  
  <p>I made a very simple program. Ony included <code>QInputDialog</code> and called <code>QInputDialog::getString()</code>. Here's the example:</p>
  
  <p>mainwindow.h</p>
  
  <pre><code>#ifndef MAINWINDOW_H
  #define MAINWINDOW_H
  
  #include &lt;QMainWindow&gt;
  #include &lt;QInputDialog&gt;
  
  namespace Ui {
  class MainWindow;
  }
  
  class MainWindow : public QMainWindow
  {
      Q_OBJECT
  
  public:
      explicit MainWindow(QWidget *parent = 0);
      ~MainWindow();
  
  private:
      Ui::MainWindow *ui;
  };
  
  #endif // MAINWINDOW_H
  </code></pre>
  
  <p>mainwindow.cpp</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
      QInputDialog::getText(this,"title","label");
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  </code></pre>
  
  <p>main.cpp</p>
  
  <pre><code>#include "mainwindow.h"
  #include &lt;QApplication&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      MainWindow w;
      w.show();
  
      return a.exec();
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>Starting C:\Users\socc\Documents\Qt\build-VerySimple-Desktop_Qt_5_10_0_MinGW_32bit-Debug\debug\VerySimple.exe...
  setGeometry: Unable to set geometry 116x30+100+105 on QWidgetWindow/'QInputDialogClassWindow'. Resulting geometry:  178x90+100+105 (frame: 8, 30, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 178x90, maximum size: 524287x90).
  C:/Users/socc/Documents/Qt/build-VerySimple-Desktop_Qt_5_10_0_MinGW_32bit-Debug/debug/VerySimple.exe exited with code 0
  </code></pre>