Re: [Interest] **SPAM**d Re: Setting current item text color via stylesheet in QTableView for SelectRows

2018-08-12 Thread Patrick Stinson
It does work for me as well. I was just having trouble getting it to work with 
the default background color for selected items and white for selected+current.

I wonder why this isn’t default..

> On Aug 12, 2018, at 10:01 PM, Reinhardt Behm  wrote:
> 
> Hi Patrick,
> 
> it works for me with this style.
> 
> The attached picture show two selected rows (0 and 2) and one current, 
> unselected cell (1).
> 
> -- 
> Best Regards
> 
> Reinhardt Behm
> 
> 
>> On Sunday 12 August 2018 21:06:28 Patrick Stinson wrote:
>> Don’t forget to reply to all.
>> 
>> Your example is interesting, and it does solve the problem of making the
>> selected and current item stand out. I suppose there isn’t a way to do this
>> and also show the current item when it is not selected.
>> 
>> How strange that you can’t combine selectors as in CSS.
>> 
>>> On Aug 12, 2018, at 8:42 PM, Reinhardt Behm  wrote:
>>> 
>>> QTableView::item
>>> { color:black; background-color:white; }
>>> QTableView::item:selected
>>> { color:green; }
>>> QTableView::item:focus
>>> { color:blue;  }
> 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] **SPAM**d Re: Setting current item text color via stylesheet in QTableView for SelectRows

2018-08-12 Thread Reinhardt Behm via Interest
Hi Patrick,

it works for me with this style.

The attached picture show two selected rows (0 and 2) and one current, 
unselected cell (1).

-- 
Best Regards

Reinhardt Behm


On Sunday 12 August 2018 21:06:28 Patrick Stinson wrote:
> Don’t forget to reply to all.
> 
> Your example is interesting, and it does solve the problem of making the
> selected and current item stand out. I suppose there isn’t a way to do this
> and also show the current item when it is not selected.
> 
> How strange that you can’t combine selectors as in CSS.
> 
> > On Aug 12, 2018, at 8:42 PM, Reinhardt Behm  wrote:
> > 
> > QTableView::item
> > { color:black; background-color:white; }
> > QTableView::item:selected
> > { color:green; }
> > QTableView::item:focus
> > { color:blue;  }___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Setting current item text color via stylesheet in QTableView for SelectRows

2018-08-12 Thread Patrick Stinson
Don’t forget to reply to all.

Your example is interesting, and it does solve the problem of making the 
selected and current item stand out. I suppose there isn’t a way to do this and 
also show the current item when it is not selected.

How strange that you can’t combine selectors as in CSS.


> On Aug 12, 2018, at 8:42 PM, Reinhardt Behm  wrote:
> 
> QTableView::item
> { color:black; background-color:white; }
> QTableView::item:selected
> { color:green; }
> QTableView::item:focus
> { color:blue;  }

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] crash when using multiple setSectionResizeMode() calls in QTableView

2018-08-12 Thread Frank Rueter | OHUfx

Hi all,

using PySide2 I am trying to set different resize modes for each of my 
columns in a table view, but as soon as I set more than one I get a crash.


Here is what I do:

|class MyView(QtWidgets.QTableView): def __init__(self, parent=None): 
super(MyView, self).__init__(parent) header = self.horizontalHeader() 
header.setSectionResizeMode(0, QtWidgets.QHeaderView.Fixed) 
header.setSectionResizeMode(1, QtWidgets.QHeaderView.Interactive) |


Is this a bug or am I doing something wrong?

Cheers,
frank

​

--

ohufxLogo 50x50 
	*vfx compositing  | *workflow 
customisation and consulting * *

**
   


Your gateway to over 1,000 free tools... right inside of Nuke 



___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest