Results 1 to 2 of 2

Thread: QComboBox doesn't update when on hidden widget

  1. #1
    Join Date
    Aug 2008
    Location
    Cherry Hill, NJ USA
    Posts
    61
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QComboBox doesn't update when on hidden widget

    Hi,

    I'm having a strange problem with a QComboBox - I want to update the selected item using its index when the QFrame on which the QComboBox resides is hidden. This doesn't work, although the other widgets on the QFrame update fine when the QFrame isn't visible.

    Maybe I'm missing something obvious...

    Thanks,
    Martin

  2. #2
    Join Date
    Aug 2008
    Location
    Cherry Hill, NJ USA
    Posts
    61
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox doesn't update when on hidden widget

    Operator error! I wrote this code many months ago, and forgot that I reimplemented showEvent for that QFrame, and was doing something that changed the comboBox's index.

Similar Threads

  1. Replies: 2
    Last Post: 16th July 2010, 13:42
  2. Force geometry update of hidden widget
    By stburton in forum Qt Programming
    Replies: 7
    Last Post: 9th December 2009, 08:12
  3. Replies: 2
    Last Post: 21st October 2009, 08:13
  4. QComboBox does not update
    By Cruz in forum Qt Programming
    Replies: 8
    Last Post: 19th February 2009, 17:56
  5. Replies: 5
    Last Post: 18th April 2007, 10:29

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.