Showing posts with label QTlib. Show all posts
Showing posts with label QTlib. Show all posts

Wednesday, August 11, 2010

QTableWidget bug

to remove rows from QTableWidget you have to
run the loop in reverse order. like this:

in python do this:

for x in reversed(range(self.tableWidget.rowCount())):
self.tableWidget.removeRow(x)

for c++ do this:

for (int i=view->rowCount()-1; i >= 0; --i)
removeRow(i);
for (int i=view->columnCount()-1; i>=0; --i)
removeColumn(i);

list open ports and unix sockets

To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...