Trying to use G-Api in my Qt class

Fixed using smart pointers.
Thanx