I suppose that the lines generating these warnings are within inline methods of the classes you mention.
Some compilers, such as GCC (and possibly MinGW), let you temporarily disable certain warnings. You could wrap the lines #including the offending files in a section disabling specific warnings, as in:
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
// ...
#include <QRect>
// ...
#pragma GCC diagnostic pop
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
// ...
#include <QRect>
// ...
#pragma GCC diagnostic pop
To copy to clipboard, switch view to plain text mode
Not the most portable solution, I'm afraid, but unless Qt fixes their code (for instance by doing exactly this trick inside their code) I fear you are out of luck.
Bookmarks