View Full Version : decoration position and alignment
ugluk
26th June 2012, 10:28
QStyleOptionViewItem has 2 members:
Qt::Alignment decorationAlignment
Position decorationPosition
but setting them does not seem to produce any results. Have you ever played with them?
sonulohani
26th June 2012, 11:32
Which value are you setting in Qt::Alignment. The default value is Qt::AlignLeft.
Could you please send your code so that we can figure out that what is the problem?
ugluk
27th June 2012, 11:23
The problem is setting
option.decorationAlignment = style.decorationAlign;
option.decorationPosition = style.decorationPosition;
inside
void MyDelegate::paint(QPainter* painter,
QStyleOptionViewItem const& option, QModelIndex const& index) const
produces no results.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.