Here:

    int countTab()const;
    QueryWidget *const currentWidget() const;

You can see two different styles for `const` methods. There is no space before `const` at first line, but we can see space before `const` on second line. 

Please be consistent! Prefer second version, always put space before `const`:

    int countTab() const;
    QueryWidget *const currentWidget() const;