I have a QFileSystemModel that I'm tinkering with. I'm trying to hook up a
QCompleter to the file system model to support auto completion of a file
path. There appears to be a problem though that the QCompleter is trying to
auto complete the path from the root drives, and not with the path
reflected by a previous call to setRootIndex. For example, I set the root
index to a sub folder c:\test\folder. I would expect the completer to pop
up options for subdirectories or folders below that, but the completer
appears to be using data from the QFileSystemModel without the root index
considered, so the completer shows the list of drives first. I would think
that the completer would base its source on the root index. Wouldn't that
make the most sense? Is this a bug? What's the recommended workaround?
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to