title: QT Application Crash when mouse is over a push button
body: <p>I will try to cut the story short as much as I can.
  I statically compiled QT 5.11.2 to be able to compile a single executable under windows following this guide:
  <a href="https://retifrav.github.io/blog/2018/02/17/build-qt-statically/" rel="nofollow noreferrer">https://retifrav.github.io/blog/2018/02/17/build-qt-statically/</a></p>
  
  <p>After many trials, compiling and such I was able to get in "release" mode a <code>.exe</code> of around 15MB.</p>
  
  <p>I compiled it using different MinGW versions with the option <code>"QTPLUGIN.imageformats = -"</code> in the <code>.pro</code> project to avoid <code>-ltiff</code> error.
  This is strange as my Application has no image handling opss...</p>
  
  <p>My application is a basic and simple push button (no event associated). </p>
  
  <p>The issue I am facing now is that when the mouse moves over the button and it should turn from grey to light blue the Windows wheel spins for a second before the application crashes with <code>Segmentation fault</code>.</p>
  
  <p>Using dynamic compiling it works well and no crashes.</p>
  
  <p>After many tries I found out that at least another QT objects crashes in the same way which is <code>RadioBox</code>. <code>CheckBox</code> and <code>Tool Button</code> are handled correctly the mouse over event.</p>
  
  <p>I tried to change crashing object properties copying from working objects but still crashes!</p>
  
  <p>I am desperate! After the nightmare of static compiling I landed to this issues and no googling helped me so far.</p>
  
  <p>Tested Compilers are:</p>
  
  <pre><code>MinGW 4.9.2 g++
  MinGW 5.3 g++
  MinGW 7.3 g++
  </code></pre>
  
  <p>I also tried to remove the Debugger just in case.</p>
  
  <p>Any help?</p>
  
  <p>I am moving from Rad Studio to QT for its known issues finding more troubles than solutions.</p>