PDA

View Full Version : multi-line qcombobox with item delegate



cristian
24th July 2017, 15:20
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:
12523

high_flyer
24th July 2017, 16:13
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.