title: Qt Removing Window Widgets
body: <p>I'm using Qt5.5 and I would like a window without any widgets, here is a snippet from my Window constructor:</p>
  
  <pre><code>    Qt::WindowFlags flags = (Qt::Window
                             | Qt::WindowTitleHint
                             | Qt::CustomizeWindowHint)
                            &amp; ~Qt::WindowMaximizeButtonHint;
      setWindowFlags(flags);
  </code></pre>
  
  <p>This produces a window with no close widget and no minimize widget, however the maximize widget is still visible and can be clicked on to maximize the window, also the window can be resized by dragging the window edges.</p>
  
  <p>I am trying to create a tool window that is always on top and doesn't have any widgets and is a fixed size.</p>
  
  <p>In QtCreator I've set the sizePolicy to:</p>
  
  <pre><code>    Horizontal Policy: Fixed
      Vertical Policy: Fixed
  </code></pre>
  
  <p>Yet I am still able to resize the window?</p>
  
  <p>I am aware that this is a very similar question to others posted before, but so far having read those and tried the suggestions nothing has worked.</p>
  
  <p>I'm running on Ubtuntu 14.04.</p>