Results 1 to 2 of 2

Thread: How to add pull down list inside a button

  1. #1
    Join Date
    Aug 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Cool How to add pull down list inside a button

    How can I create a button with pull down list inside of button

    Examples:

    button_pull_down_list.png

    example_button_pulldown.png

    clicking on the arrow -> accesses the pull down list

    Thanks,

    Lamar

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to add pull down list inside a button

    Its not a button with a pull down list its a pull down list which is styled.
    You can either implement a style on a regular QComboBox or subclass it and override its paintEvent().
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 0
    Last Post: 10th March 2015, 03:03
  2. Replies: 2
    Last Post: 9th March 2015, 12:02
  3. QGLWidget renderText inside Display List
    By garnier in forum Qt Programming
    Replies: 0
    Last Post: 14th December 2011, 18:48
  4. Replies: 1
    Last Post: 2nd August 2010, 06:40
  5. Focus frame inside QComboBox list
    By alpinista in forum Qt Programming
    Replies: 2
    Last Post: 13th November 2009, 15:30

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.