Results 1 to 2 of 2

Thread: Controlling QCompleter's pop-up

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Controlling QCompleter's pop-up

    I am currently using a QCompleter with a QLineEdit. The code seems to work fine. But I would like to make 1 minor customization. If the user presses the up-arrow, before typing any text (to match) I would like to pop-up the entire list (which works) and automatically select the last item. I thought I could do this by calling setCurrentRow(). But that doesn't seem to change the pop-up display. Is there some other method of manipulating the pop-up display? My code is based on the QCompleter example (http://doc.trolltech.com/4.2/tools-customcompleter.html).

    Thank you
    David Brennan

  2. #2
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Controlling QCompleter's pop-up

    After more digging. I did find my own answer in this forum post (http://www.qtcentre.org/threads/2351...ght=qcompleter).

    It didn't describe what I was trying to do, but there was a nugget of code at the end of the sample that worked out for me.

Similar Threads

  1. GDB: Failed to set controlling terminal
    By dbrich in forum Installation and Deployment
    Replies: 1
    Last Post: 1st October 2010, 14:18
  2. Programmatically controlling fields on a webpage
    By tamalotes in forum Qt Programming
    Replies: 0
    Last Post: 25th August 2010, 23:42
  3. QMessageBox: Controlling the width
    By ChrisW67 in forum Newbie
    Replies: 8
    Last Post: 14th August 2009, 22:38
  4. Replies: 1
    Last Post: 12th October 2008, 08:21
  5. Controlling which widget on top layer?
    By JonathanForQT4 in forum Qt Programming
    Replies: 6
    Last Post: 22nd March 2007, 14:27

Tags for this Thread

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.