I want to make a simple application that reads a text file and displays the text in a window. I am new to gui programming and am wondering what widget I need to use.
Thanks.
I want to make a simple application that reads a text file and displays the text in a window. I am new to gui programming and am wondering what widget I need to use.
Thanks.
There is a demo editor app that does that.
Search the demo directory of your QT install and/or look in the tutorial/examples section of the "Assistant".
Thanks for the reply. The text editor isn't exactly what I'm looking for. I want to be able to display text that can't be modified by the user. For instance if I have a list of japanese words in a text file, I want to be able to display the information as if it were a flash card.
Now if the text editor will let me do that, then I'll give that a go.
Thanks again.
Looking into another tutorial it appears that I just need to derive from QWidget and use repaint and paintEvent
Make the TextEdit readonly.
Or You can use QLabel
We can't solve problems by using the same kind of thinking we used when we created them
You can just use QTextBrowser.
Bookmarks