Results 1 to 17 of 17

Thread: How to remove Scroll bar of QCombo Box

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to remove Scroll bar of QCombo Box

    Hm, is this task homework you have to do?

    And you won't find an easy solution, because removing the "drop down" from a combobox is nonsense (like having a button without a click-able area). So no build in solution for that, but you can subclass the style and change the drawing there. Or use a proxy style.

  2. #2
    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: How to remove Scroll bar of QCombo Box

    Perhaps you really want a QLineEdit, QCompleter and QValidator.

Similar Threads

  1. How we increase the width of Scroll bar of QCombo Box
    By rajeshclt3 in forum Qt Programming
    Replies: 6
    Last Post: 16th August 2011, 09:53
  2. Set Default text in QCombo box
    By daarsh in forum Qt Programming
    Replies: 2
    Last Post: 11th April 2011, 10:38
  3. Need help on setting up Defult text on QCombo box
    By Askar in forum Qt Programming
    Replies: 3
    Last Post: 23rd February 2011, 10:50
  4. QDial disabling key scroll and mouse wheel scroll
    By ldg20 in forum Qt Programming
    Replies: 2
    Last Post: 2nd June 2010, 23:05
  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.