i want to select a treeview row at startup
Qt Code:
ui->treeView->setRootIndex(index);To copy to clipboard, switch view to plain text mode
i dont know how can i do it... i just want to select a row at startup... please help!!!
Edit:
I cant understand model/view arch. logic... i read local help files, looked at samples too...
I can get index of the selected items, but i cant store them (in textfile or registry) Gone a be crazy...
Also i tried to give row and coloumn numbers manually, but i cant do it. if i can select it manually on start up, my problem will be solved... Please help...
Added after 36 minutes:
Yep...
Forget treeview... i solved this with using tableview... right widget for right work...thanks all..
Bookmarks