Results 1 to 4 of 4

Thread: Need help on setting up Defult text on QCombo box

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: Need help on setting up Defult text on QCombo box

    That's what i am saying. It's your logic to do that. Check out the signals of QComboBox like currentIndexChanged(...), activated(...). On slots put your logic such that the 'Select Text' would be default option if no item is selected. Once selected remove that item from the combobox list.

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

    Askar (23rd February 2011)

Similar Threads

  1. Setting the text in QDomElement
    By dpatel in forum Qt Programming
    Replies: 1
    Last Post: 4th May 2010, 13:12
  2. Setting the text of a QLineEdit
    By td in forum Newbie
    Replies: 2
    Last Post: 11th September 2008, 11:03
  3. Replies: 4
    Last Post: 29th February 2008, 10:04
  4. setting text also changes color?
    By drhex in forum Qt Programming
    Replies: 5
    Last Post: 22nd November 2006, 16:36
  5. Qcombo box
    By nErnie in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2006, 00:56

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.