hubbobubbo
1st June 2010, 12:13
Hi
I have a single QTreeView in my S60 application. However I must press the "middle" hardware button first, before I can navigate up and down in the list. When I click the middle button the Options changes to Done and I can navigate, then I have to press Done and Options pop back up. However this is my only widget and I want to be able to scroll up and down without selecting the widget first.
I tried using :
QModelIndex Index = standardModel->index(1,0);
myList->setCurrentIndex(Index);
And this changes the selected index but does not give focus
Then I tried:
myList->setFocus()
but that did not work either?
So what am I doing wrong, this should be pretty straight forward right?
The QTreeView is placed inside a stackedView but there is no layout or anything in the stack, only this listView.
I have a single QTreeView in my S60 application. However I must press the "middle" hardware button first, before I can navigate up and down in the list. When I click the middle button the Options changes to Done and I can navigate, then I have to press Done and Options pop back up. However this is my only widget and I want to be able to scroll up and down without selecting the widget first.
I tried using :
QModelIndex Index = standardModel->index(1,0);
myList->setCurrentIndex(Index);
And this changes the selected index but does not give focus
Then I tried:
myList->setFocus()
but that did not work either?
So what am I doing wrong, this should be pretty straight forward right?
The QTreeView is placed inside a stackedView but there is no layout or anything in the stack, only this listView.