I was using Q3Table. Now I want to use QTableWidget My code was
Qt Code:
  1. q3Table->setColumnReadOnly(0, true);
  2. q3Table->setColumnReadOnly(2, true);
  3. q3Table->setColumnReadOnly(3, true);
  4. q3Table->setColumnReadOnly(5, true);
To copy to clipboard, switch view to plain text mode 

Now I want to port this to qt4 So if I do
Qt Code:
  1. q4TableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
To copy to clipboard, switch view to plain text mode 

All coulmns will be readOnly, so how I should do it?

Also while porting from qt3 to qt4 i have
Qt Code:
  1. q3Table->setFocusStyle(Q3Table::FollowStyle);
To copy to clipboard, switch view to plain text mode 

Can you suggest me what would be the equivalent code for both ?