Table component highlights cell even when select mode is nothing

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
5 posts • Page 1 of 1
emaddocks
Posts:83
Joined: Tue Sep 04, 2018 12:50 am

Table component highlights cell even when select mode is nothing

Post by emaddocks »

Hi,

Is there a way to prevent the highlight on clicked cells in a table?
It seems that the following settings should work but we still see the cell highlight when clicked:

Code: Select all

shTable.tableMode(TABLE_SELECT_NOTHING);
shTable.selectByClick(TABLE_SELECT_NOTHING);
We are running WinCC OA 3.17 P014 on RHEL 8.2.

Note: I've tried to upload an attachment to show what this looks like but the attachment upload doesn't work (tried both Chrome and Edge browsers)

dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Re: Table component highlights cell even when select mode is nothing

Post by dbindernagel »

With WinCC OA 3.18 P006 on a Windows host it works as desccribed in the help.

To clarify:
If you click on a cell while "tableMode" and "selectByClick" are both set to something else than "TABLE_SELECT_NOTHING", the background of the cell (or line/column, depending on the mode) gets a different colour to show it is selected (blue for my colour scheme).
If either "tableMode" or "selectByClick" are set to "TABLE_SELECT_NOTHING" the background of the cell does not change but you will still see a dotted border around a cell if you click on it.

If this is the problem I don't know if there is a way to remove this.
A workaround might be to set "Transparent For Mouse" to true (in the Gedi).
But then you can't click on the table anymore and selecting it with the tab key would still be possible (with dotted border showing).

emaddocks
Posts:83
Joined: Tue Sep 04, 2018 12:50 am

Re: Table component highlights cell even when select mode is nothing

Post by emaddocks »

Thanks dbindernagel,

That dotted border you're getting in Windows must be the faint highlight I'm seeing in Linux. It 'works' from the point of view that the cell is not actually selected but it doesn't work from the point of view that the user thinks they have 'half' selected the cell as it changes state when clicked.

Hopefully just a bug in OA (rather than QT) that can be ironed out in the next patch :)

Cheers
Eric

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Table component highlights cell even when select mode is nothing

Post by leoknipp »

I did not test but probably you can use stylesheets to modify the layout of the table.

Best Regards
Leopold Knipp
Senior Support Specialist

erik.schwing
Posts:16
Joined: Tue Feb 12, 2019 6:59 am

Re: Table component highlights cell even when select mode is nothing

Post by erik.schwing »

If you want to get rid of this dotted line (it is the focus display) i believe the following styelsheet should work:

Code: Select all

QTableView {
  outline: none;
}

5 posts • Page 1 of 1