Do you know your way around Qt? Help needed

I did some digging and came to two possible solutions: