> Sent: Friday, 29 January 2016 2:45 PM
>
> Hi
> I have a `QTreeView`, I control the background colors of items trough a
css.
> When the pointer is over an item his background is greyed.
>
> I use the signal `entered` to detect which item, aka `QModelIndex`, aka
row,
> is hovered. If I use that
Den 29 jan 2016 4:47 fm skrev "Nicolas Jäger" :
>
> Hi
> I have a `QTreeView`, I control the background colors of items trough a
css. When the pointer is
> over an item his background is greyed.
>
> I use the signal `entered` to detect which item, aka `QModelIndex`, aka
Hi,
> I think that you will need to use WA_TransparentForMouseEvents, and then
> handle the MouseDown event in MyTreeView to check where along the row the
> user has clicked to see if it is within the button.
in that case I won't really clicked on the button right? in that case I won't
have
Hi
I have a `QTreeView`, I control the background colors of items trough a css.
When the pointer is
over an item his background is greyed.
I use the signal `entered` to detect which item, aka `QModelIndex`, aka row, is
hovered. If I use
that signal, is because I have to show a `QPushButton`
I may have found one solution:
http://doc.qt.io/qt-5/qtreewidget.html#setItemWidget
I'll look more at this tomorrow.
regards,
Nicolas
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest