[Qt-interest] vertical spacing between items of QListWidget

Tom Panning lurchvt at gmail.com
Mon Jun 15 14:31:58 CEST 2009


Serge,

I've done this by subclassing QItemDelegate and overriding
QItemDelegate::sizeHint() to return a size with a slightly larger
height. Then setItemDelegate() to tell it to use your delegate class.

If you (or anyone else) knows or finds out a better way, I'd be glad to hear it.
Tom

On Mon, Jun 15, 2009 at 7:57 AM, Serge<mb0 at km.ru> wrote:
> Hi,
>
> Is it possible to increase vertical spacing between items of
> QListWidget? I can not find how to do it using stylesheet or by changing
> some properties of widget.
>
> --
> Serge
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list