PDA

View Full Version : QlineEdit auto detects path



jesse_mark
9th November 2012, 18:40
Hi all,

I am not sure if the name of the poll is accurate

but What i want to ask about is,
I have QlineEdit to hold file path .
I want make the QlineEdit similar to typing a path in the terminal. when you start typing the path and hit the Tab, it auto completes the name for you.
in case of many file/directories start with the same letters you already wrote, it drop a list of the all files with the same name in that directory.

Especially the drop list, what widget/object would be the best for that ??

I hope this make my question clear.

Thank you :)

ecanela
9th November 2012, 19:14
Read the following link, maybe you find useful. but instead of QTextEdit use a QLineEdit,
http://doc.qt.digia.com/qq/qq07-customizing-for-completion.html