I'm trying to set the background color on a model by returning a color inside my models::data function.
The usage flow is as follows: * User selects a row * Clicks and "action button" (or possibly a double click on the row) * The action is triggered, which should cause the row to change colors, first to a background of yellow while the core is setting up, then to green or red once finished (depending on success or failure) However, since the row is selected, the selected row color is always selected rather than being over written by the QModelIndex::data value If I hover over the row, it changes color If I select a previous row, the row then is painted correctly. Is there a way, to ignore the hover state or selected state for painting? I haven't tried this with other types of models. I can create a simple test case if necessary, but since this is clearly intended behavior, there may be a known work around for this. Thanks Scott
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest