QtGui.framework/Headers/qitemdelegate.h:124:40: error: macro “check” passed 3 arguments, but takes just 1

Written by  on January 27, 2015

After adding some needed includes the following error can be shown by GCC:

But you did not intend to deal neither with ‘QItemDelegate’ nor ‘check’. So what is the reason?

Have a look at the erroneous file: does it use an include like

where someone was lazy as sh*t?
Replace this by the specialised includes. Recompile, fixed.

Some other workaround is the extensive use of

but I don’t really recommend this.

ps. ‘check’ is special. Did you try once to name your variable ‘string’?