Is it a theoretical question or practical? If the last - just use QLabel ...