Results 1 to 4 of 4

Thread: QComboBox Selection Validator?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox Selection Validator?

    Ah, sorry, misread your original post.

    The class that handles the signal and shows the message box will have to remember the last valid index and call setCurrentIndex() if the user rejects the change.

    Cheers,
    _

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

    chouqud (20th February 2014)

Similar Threads

  1. QComboBox with multipe selection via tree
    By corwinj in forum Qt-based Software
    Replies: 2
    Last Post: 20th February 2015, 16:41
  2. Replies: 2
    Last Post: 26th September 2012, 08:26
  3. [QComboBox] setEditable resets validator and completer
    By mentalmushroom in forum Qt Programming
    Replies: 3
    Last Post: 17th May 2012, 11:42
  4. QComboBox multi-column popup selection quirks [SOLVED]
    By ChrisW67 in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2011, 02:56
  5. prevent selection in QComboBox.
    By hicpalm in forum Qt Programming
    Replies: 6
    Last Post: 21st May 2008, 15:06

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.