elylqyxtsx
New Member
I have a non-editable QTextEdit Widget in one of my apps. Basend on the selection of a combobox i want to display additional informations.My current approach is to load HTML files from a directory and display them in the QTextEdit-Field. This sounds easy (with the functions setHtml or insertHtml), but somehow doesn't work as straight forward as i thought. I believe i have to parse or load in the file first. How can i continue?\[code\]h = (helpdir + str + ".html") # contains the helpfiles path (Format QString)# Load in HTML?textfield.insertHtml(h) # Should somehow insert the html\[/code\]Other approaches (especially in the light of a future translation of the help), which are easy to implement, are welcome. I would favor any solution without additional libraries or non base packages.