QScrollArea *area = new QScrollArea(); area->setFrameStyle(QFrame::NoFrame); area->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); area->setWidget(table);
for (int i = 0; i < objModel->rowCount(QModelIndex()); ++i) view->openPersistentEditor(objModel->index(i, 0, QModelIndex()));