Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. unable to focus either on pushBUtton or tableview in same .ui file
QtWS25 Last Chance

unable to focus either on pushBUtton or tableview in same .ui file

Scheduled Pinned Locked Moved Mobile and Embedded
focus issue
1 Posts 1 Posters 631 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jayachandra Reddy Kalukurthi
    wrote on last edited by Jayachandra Reddy Kalukurthi
    #1

    Hi...In my code i have diff dialogs, while moving from one dialog to another using remote for RDK set top box am facing issue,code is
    (in dialog1)
    void dialog1::iRkeypressevent(int key)
    {
    if(key==some key integer)
    {
    dialog2=new dialog();//calls constructor
    dialog1->hide();
    dialog2->showNormal();
    }
    }
    (in dilaog2)
    in constructor i put

    ui->pushButton->setFocus();

    void dialog2::iRkeypressevent(int key)
    {
    if(key==some int key)
    {
    QModelIndex index = ui->tableView->model()->index(int,int);
    ui->tableView->setCurrentIndex(index);
    }
    }
    when entering from dailog1 to dialog2, screen is getting stuck and no operation is appearing on screen i donno is it timer issue or thread issue.

    in dialog2.ui i have pushbuttons as well as table view so using above code i can able to focus on either one of them only for remote key mapping. but based on condition i need to focus on different widgets like table view or pushbuttons. focus is happenig but using stylesheet hover i can able to identify which item is selected, that hover is not updating for remote key mapping.

    Thanks......!

    Jayachandra Reddy K
    +91-9704585282

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved