How do I sort items in a tableview without a column being selected?

2008-06-14 Thread Constantly Distracted
I have this TableView, which is sorted by column when the user clicks on the header. The problem is though, that all the items are selected and nothing gets sorted. But if the window loses focus everything's get's sorted. Basically I have list of tags say, [{"artist":"Artist1","title":Title1"} , {

Re: Setting the value of one cell in QTableWidget fills everything.

2008-03-29 Thread Constantly Distracted
> Move the creation of the QTableWidgetItem() to the inner loop (and call > it "item" rather than "items"). > > Phil Thanks, that works perfectly. -- http://mail.python.org/mailman/listinfo/python-list

Setting the value of one cell in QTableWidget fills everything.

2008-03-28 Thread Constantly Distracted
I've just started PyQt programming and I've run into this little problem. When I set the text of one cell in my table, all the other cells fill with that value. All I wanted to do was run a loop, printing in each cell the row and column number. Here's the code. -- fro