Results 1 to 2 of 2

Thread: multi-line qcombobox with item delegate

  1. #1
    Join Date
    Jul 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default multi-line qcombobox with item delegate

    I'm trying to change the qcombobox so that in the dropdown the item is multi-line. I searched the on the web and found that i need to create an item Delegate, but i don't know how to write it... If anyone can help me or point me in the direction w\here i can find what i need to write in the item delegate. Thanks.
    What I'm trying to do is like in the image below:
    printscreen1.png

  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: multi-line qcombobox with item delegate

    If anyone can help me or point me in the direction w\here i can find what i need to write in the item delegate.
    Why not start at the beginning?
    http://doc.qt.io/qt-5/qitemdelegate.html

    Once you read it, and started coding, come back with more focused and specific issues you need help with.
    ==========================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. QTableView, Delegate and multi font
    By binary001 in forum Newbie
    Replies: 3
    Last Post: 29th March 2016, 13:05
  2. Custom Delegate in multi hierarchy QTreeView
    By btbt9527 in forum Qt Programming
    Replies: 0
    Last Post: 5th January 2016, 19:28
  3. How to do QChartView delegate like QTableView item delegate
    By malleeswarareddy.s in forum Qt Programming
    Replies: 0
    Last Post: 16th September 2015, 12:37
  4. Replies: 0
    Last Post: 10th March 2011, 12:44
  5. Replies: 5
    Last Post: 10th August 2009, 11:50

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.