How to display a file content?
Unsolved
General and Desktop
-
Hi, Actually i'm developing a qt GUI application for generating configuartion files (.c), i want to provide an option to view content of a particular file by selecting a specific file from a Qcombobox, as part of GUI tool.
can any one please give me an idea, how should i add this option into my GUI. -
Hi
Not sure what part you ask about ?You can use
http://doc.qt.io/qt-5/qdiriterator.html#details
to make a list
or you can use
http://doc.qt.io/qt-5/qfilesystemmodel.html#details
for a more live version.Then on selection, you can open the file with
TextEdit -
@mrjj QDirModel is obsolete, QFileSystemModel should be used.