Results 1 to 2 of 2

Thread: QCombobox showPopup

  1. #1
    Join Date
    Mar 2008
    Posts
    57
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanked 1 Time in 1 Post

    Default QCombobox showPopup

    I develop for an embedded application. This embedded device does not have a mouse or pc keyboard.

    The set of buttons is up, down, right, left, ok, softLeft & softRight. I read the button input device and map the key ids for the buttonpresses to Qt keys.

    I have a tablewidget with spinbox delegates. The spinbox delegates works fine. I am able to open (ok button), set value (up/down) and save/close (ok button).

    I would like to add a combobox delegate. It'll only include ON and OFF. I want to open it as a popup and I would like to catch the keypress to choose between ON/OFF.

    I have subclassed a combobox and installed and eventfilter. So I can open the delegate (ok button) and save/close (ok button) but I cant use the up/down buttons (I use setCurrentIndex(int)) even if I catch the keypress events.

    What am I missing here?

  2. #2
    Join Date
    Mar 2008
    Posts
    57
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanked 1 Time in 1 Post

    Default Re: QCombobox showPopup

    SOLVED...I can use the combobox model and view to do what I want.

  3. The following user says thank you to SailinShoes for this useful post:

    sedi (8th April 2012)

Similar Threads

  1. QDataWidgetMapper and QCombobox
    By miraks in forum Qt Programming
    Replies: 4
    Last Post: 6th December 2008, 17:53
  2. QComboBox - Few virtual methods
    By gruszczy in forum Qt Programming
    Replies: 17
    Last Post: 16th July 2008, 16:08
  3. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 19:25
  4. QComboBox in QTableWidget : display troubles.
    By Nyphel in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2007, 23:29
  5. using QComboBox as an ItemView
    By EricTheFruitbat in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2007, 16:14

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.