I can do simple QCompleter.
But need more complex, for work with long file list.
How i can make Completer like in Windows Explorer ?
I can do simple QCompleter.
But need more complex, for work with long file list.
How i can make Completer like in Windows Explorer ?
The scrollbar is provided out of the box once the view has enough items. For the resize handle you may try to abuse QSizeGrip like this:
Qt Code:
#include <QtGui> int main(int argc, char* argv[]) { QLineEdit lineEdit; QStringList words; for (int i = 0; i < 200; ++i) lineEdit.setCompleter(&completer); lineEdit.show(); completer.popup()->setCornerWidget(sizeGrip); completer.popup()->setWindowFlags(Qt::FramelessWindowHint | Qt::SubWindow); return app.exec(); }To copy to clipboard, switch view to plain text mode
J-P Nurmi
Please don't use external sites for storing images pasted in the forum.
Bookmarks