PDA

View Full Version : QTableWidgetItems, String + Image



shooogun
9th April 2008, 03:22
Hi,

I want to create QTableWidgetItems similar to the file/dir items in the static file dialog window, where an icon of a dir is next to the dir name, or an icon of a file is next to the file name. What should I use to do this?

Or is there a way to modify the file list in the static file dialog window, so that a sequence of similarly named files are listed as one file, i.e. file1, file2, file3, file4 are listed as file1-4?

shooogun
9th April 2008, 05:53
Figured it out guys (this Qt stuff is easy :P er... maybe)

I have to use QDirModel + QTableView instead of QTableViewWidget.