I really don't understand what you need the QProcess for.

As you see in your main.cpp you can simply include any header of a static library and then create class instances or call functions as if those were defined as part of the program itself.

So if HelloWorld::display() generates a string that should be displayed, simply make it return that string and use that value to set the text of the label.

Cheers,
_