Results 1 to 2 of 2

Thread: QlineEdit auto detects path

  1. #1
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QlineEdit auto detects path

    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

  2. #2
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Thanks
    6
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QlineEdit auto detects path

    Read the following link, maybe you find useful. but instead of QTextEdit use a QLineEdit,
    http://doc.qt.digia.com/qq/qq07-cust...ompletion.html

Similar Threads

  1. Qt Creator QTCreator 2.3.0 debugger detects wrong ABI
    By chal61 in forum Qt Tools
    Replies: 1
    Last Post: 10th November 2011, 23:55
  2. Replies: 1
    Last Post: 12th October 2010, 22:20
  3. Replies: 8
    Last Post: 17th October 2009, 08:10
  4. How Qt/Embedded detects the keypad input from device?
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 4th April 2006, 07:08
  5. Auto commit in QLineEdit in QTableWidget
    By Corran in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 17:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.