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);
Wednesday, August 11, 2010
Subscribe to:
Comments (Atom)
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 -...
-
This is very unconventional but a valid code and it will run!!, the magic is the static initializer block. this block is hidden from ever...
-
[ These steps may work on CentOS 5.* too] Prepare your OS for it $ sudo yum groupinstall "Development tools" $ sudo yum in...