you may have several problems, but the first one is that you assigned a 32bit compiler to a 64bit Qt version. That will not work.
You can take a look at the "Chip" class in the 40000 chips example. Or the classes in the Drag Drop Robot example. They don't use text, but the principles are the same.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.