Hi,
I want to ask you about the best way to implement moving whole rows between 3 different QTableWidgets after pressing buttons or when I get such a datagram from server.
This is how it looks like now:
tableWidgets..jpg
I have QMap<int, Player *> to store id and pointers of Player class where there are fields like: QString nick, quint8 team_id,...
When I press one of these join buttons I need to change team_id field of player who clicked it to 0 (Spectators), 1 (Home Team) or 2 (Away Team) and move the whole row with his id to proper QTableWidget. The same with information about other players changing their teams.
What do you think will be the best solution for this problem?
Bookmarks