Unsolved How can I remove duplicate values from QTableWidget
-
Hello, I was wondering how I can remove any duplicates from a table in pyside2 as when my program runs there is a refresh button that adds ab values that previously did not exist but when I press the button it also duplicates values that are already there!
So how do I go about stopping this?
-
has no one come up with a solution?
-
I don't know how you're entering data into the widget but if you want to only store distinct items then maybe store the data of the table widget in a python 'set()' or maybe share your refresh function.
-
@Denni-0 oh if the latter is easier do you mind showing me an example please?
-
@Denni-0 oh right okay thanks I will try and see if i can put his in code!