Results 1 to 2 of 2

Thread: setFocus and pushButton

  1. #1
    Join Date
    Oct 2015
    Posts
    1
    Qt products
    Qt4 PyQt3 PyQt4
    Platforms
    Windows

    Question setFocus and pushButton

    I have a search lineEdit that is being populated with a search result when there is only one value left in it. egg I'm typing in users name and when there is only one user left with the combination of letters I have typed in his full name is being populated in lineEdit. After that I have setFocus function and it works great when I set it to another lineEdit.

    When I set it to move focus to pushButton it does not move it after result is returned but it requires me to type one more letter. So most of the time I end up with invade user name because that addition letter is being typed in.

    Is this know issue? Any help would be highly appreciated.

    Thank you for your help and time.

    Azur

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: setFocus and pushButton

    Are you using QCompleter or something of your own?
    Perhaps easiest to post a short, self-contained program that demonstrates the problem.

Similar Threads

  1. QTabBar setFocus
    By Alundra in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2015, 16:48
  2. Replies: 3
    Last Post: 29th April 2011, 08:54
  3. setFocus() on Lineedit
    By qtuser20 in forum Qt Programming
    Replies: 1
    Last Post: 26th February 2010, 18:54
  4. setFocus problem
    By roxton in forum Qt Programming
    Replies: 3
    Last Post: 12th February 2009, 05:41
  5. QLineEdit setFocus
    By bunjee in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2008, 16:22

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
  •  
Qt is a trademark of The Qt Company.