As I've seen from the tutorials, QML seems the only way to create graphical apps in Ubuntu for tablets. Other languages seem to be only for using OpenGL, not Qt libraries.
My question can be rephrased as: Can I grab some Linux C code and compile it in Ubuntu for tablets?