I got it to work, thanks.
I have a new problem however. If the user wishes to view several large files it takes forever for QTextEdit to display the files - undoubtly because I chop the text into thousands of strings and then append them. How do I optimize the code to run faster? There must a faster way.
Bookmarks