Hi, I have implemented some kind of a file browser in my application using QTreeView and QFileSystemModel. All works fine, except when it comes to dragging folders/files from my QTreeView, and this on Windows (it's fine on Linux while I haven't got a chance to try it on Mac OS X yet).
My QTreeView is customised as follows:
If I try to drag a folder, then there is a gap between the Name and Type information (i.e. an empty space for the Size information), as can be seen in the following screenshot:Qt Code:
setAllColumnsShowFocus(true); setModel(mFileSystemModel); setSortingEnabled(true); setUniformRowHeights(true);To copy to clipboard, switch view to plain text mode
FileBrowser.png
In fact, it's the same with a file:
FileBrowser #2.png
As one can see, Qt actually paints the cells individually rather than the whole row. So... is there any way to get things to work 'properly' (i.e. as on Linux) or is that a bug on Windows?
Bookmarks