PDA

View Full Version : insert path in listwidget



panyang
21st February 2011, 16:58
hi. how can i insert a path in a list widget?

here's the scene..i will insert a path of a .txt file in the code then the listwidget will display its content..can someone help me?

ChrisW67
21st February 2011, 21:30
There is no magic bullet readAndDisplayMyArbitraryData() method.

Open and read the file then do whatever you like with the content:
QFile and QTextStream

QListWidget might be the sort of display widget you were referring to. You might also look at QPlainTextEdit.