PDA

View Full Version : Icon Text Alignment



nupul
30th April 2006, 05:20
I wish to display some icons in QlistView, but I should be able to orient the icon

label either to the left/right/above/below the icon. How do I do this?

Thanks

Nupul

jpn
30th April 2006, 09:42
You'll need to provide a custom delegate (http://doc.trolltech.com/4.1/model-view-delegate.html).

nupul
30th April 2006, 14:57
Thanks jpn - but it's an area of Qt I am not very well versed with. But do i need to do the same incase of displaying a pixmap on a button...i.e. icon on left and text on right?

Nupul

nupul
1st May 2006, 04:47
Thanks jpn - but it's an area of Qt I am not very well versed with. But do i need to do the same incase of displaying a pixmap on a button...i.e. icon on left and text on right?

Nupul


err...sorry guys...wrong doubt....it actually works by default...the doubt actually is of the alignment...I wish the text, which is displayed to the right of the icon be aligned to the centre of the button and not the top...what should I do?

Thanks

Nupul