The model gets automatically destroyed when going out of scope. Allocate it on the heap:
PS. Have you noticed QDirModel?Qt Code:
FileModel* fmodel = new FileModel(this); table->setModel(fmodel);To copy to clipboard, switch view to plain text mode![]()
The model gets automatically destroyed when going out of scope. Allocate it on the heap:
PS. Have you noticed QDirModel?Qt Code:
FileModel* fmodel = new FileModel(this); table->setModel(fmodel);To copy to clipboard, switch view to plain text mode![]()
J-P Nurmi
Bookmarks