Trying to use G-Api in my Qt class

How can the GComputation be a temporary variable? I don’t understand, can you explain please