Yes, try overwriting the index() method and handle creation of indexes for your column yourself.
Another thing, just to make sure it isn't he cause, would be to always return 5 in the columnCount method,
Cheers,
_
Yes, try overwriting the index() method and handle creation of indexes for your column yourself.
Another thing, just to make sure it isn't he cause, would be to always return 5 in the columnCount method,
Cheers,
_
I have overwritten the index() method and handle the custom column in the proxy model itself.
Now a custom column is displayed with a custom header and custom contents. perfect.
But I have another problem with the selection of a file.
I cannot choose a file anymore. I can select a file, but no file is displayed in the "File Name" QLineEdit and the "OK" Button is disabled.
The following methods are also overwritten in the QFileDialogProxyModel class: (the signature i have already checked)
but the debugger doesn´t stop here at no time.Qt Code:
QItemSelection QFileDialogProxyModel::mapSelectionFromSource ( const QItemSelection & sourceSelection ) const{ } QItemSelection QFileDialogProxyModel::mapSelectionToSource ( const QItemSelection & proxySelection ) const{ }To copy to clipboard, switch view to plain text mode
I expected that I get a debugger stop at Line 5 or Line 11.
Maybe also needs to implement mapFromSource/mapToSource?
Cheers,
_
Bookmarks