In my qt code I want to go to another page from 1st page(means I enter the number where I want to go and press enter and that page will be open). To do so I use spinBox,
if(e->key() == Qt::Key_F)
{
spinBox->setFocus();
}
if(e->key() == Qt::Key_G)
{
spinBox->ClearFocus();
}
When I press F it set the focus of spinBox, But the problem is that when once the focus is set I can not come out from that(my Key_G is not detected).
So please help me to come out from that focus so I can go ahead in my project.
-Renold
Bookmarks