Have you something like this in your code before this loop : Qt Code: Switch view table.setColumnCount(2); table.setColumnCount(2); To copy to clipboard, switch view to plain text mode And Qt Code: Switch view table.repaint(); table.repaint(); To copy to clipboard, switch view to plain text mode is not required.
table.setColumnCount(2);
table.repaint();
Forum Rules
Bookmarks