Pointer sign should be used without space.

Good:

    QueryWidget *wid = ...

Bad:

    QueryWidget * wid = ...