I was using Q3Table. Now I want to use QTableWidget My code was
q3Table->setColumnReadOnly(0, true);
q3Table->setColumnReadOnly(2, true);
q3Table->setColumnReadOnly(3, true);
q3Table->setColumnReadOnly(5, true);
q3Table->setColumnReadOnly(0, true);
q3Table->setColumnReadOnly(2, true);
q3Table->setColumnReadOnly(3, true);
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
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
q3Table->setFocusStyle(Q3Table::FollowStyle);
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 ?
Bookmarks