You don't need to disable stylesheets. Just don't style items or ignore that they do have any style. If you implement your own delegate and not call the base class implementation, items in the table will not be styled by stylesheets.
You don't need to disable stylesheets. Just don't style items or ignore that they do have any style. If you implement your own delegate and not call the base class implementation, items in the table will not be styled by stylesheets.
Got it, but is it possible to somehow work around implementing the entire drawing by myself but calling the base class's method with a hint not to use stylesheets? Say, in debugger I see it takes the style to draw with from QStyleOptionViewItemV3::widget property. Do you think it can be right to amend this property somehow in the sub-classed delegate paint method and then call base class's one?
If you use QItemDelegate instead of QStyledItemDelegate (which is the default) then stylesheets will not be used in items.
topoden (21st May 2013)
Bookmarks