Results 1 to 16 of 16

Thread: QComboBox BUG?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    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: QComboBox BUG?

    Quote Originally Posted by mak_user View Post
    @ChrisW67: Do you redo the steps exactly as I said? Because in some cases it does work properly indeed(but rarely). I am using Qt 4.8.0, but I tested on 4.7.4 on Linux with the same result.
    I copied your code example, compiled it, run it, pressed the down arrow twice to select item3, pressed Enter. Item3 remained selected, exactly as expected. I repeated it with the mouse to select item 3: same result. Since you are doing something custom with Enter key presses I would start by looking there.

    Quote Originally Posted by mak_user View Post
    Why nobody even view my example? Am I doing something wrong or it is a QComboBox bug?
    It could be that:
    • Not everyone is in your time zone: I certainly wasn't waiting at 00:45 this morning for your post.
    • Not everyone has unlimited time to debug other people's code.
    • Nobody cares


    A quick download and build of your code: no problem with either the value in the edited combo box or the change of focus.

    I am wondering why you maintain a separate list of widgets to determine where next to put focus. Surely QWidget::nextInFocusChain() is an obvious candidate for this given that you have a pointer to the widget with the key press event.

  2. The following user says thank you to ChrisW67 for this useful post:

    mak_user (30th January 2012)

Similar Threads

  1. Set value to QComboBox
    By Archa4 in forum Newbie
    Replies: 2
    Last Post: 19th May 2011, 12:46
  2. Qcombobox
    By Project25 in forum Qt Programming
    Replies: 2
    Last Post: 16th December 2009, 19:29
  3. QComboBox
    By kavinsiva in forum Qt Programming
    Replies: 3
    Last Post: 10th August 2009, 16:11
  4. QComboBox
    By bismitapadhy in forum Qt Programming
    Replies: 7
    Last Post: 15th July 2009, 06:01
  5. QComboBox
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2007, 13:17

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.