Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_gui_itemviews_qabstractitemview.cpp

//! [0]
void MyView::resizeEvent(QResizeEvent *event) {
    horizontalScrollBar()->setRange(0, realWidth - width());
    ...
}
//! [0]

//! [1]
setIndexWidget(index, new QLineEdit);
...
setIndexWidget(index, new QTextEdit);
//! [1]

//! [2]
QItemSelectionModel *m = view->selectionModel();
view->setModel(new model);
delete m;
//! [2]

Generated by  Doxygen 1.6.0   Back to index