set top box UI with qt



  • hi,

    I use qt to design the set top box UI,and a remote tv controller can control the UI with the key "Up", "Down","Left","Right" .
    The UI has received the key information from the remote tv controller,
    but how to Switch the UI interface with the key information like that the UI responses the keyboard



  • It purely looks like specific implementation.

    Your architecture should talk about this.

    For example, When you press right arrow, say you want to change the channel

    switch(key)
    {
        case Right:
        {
            funcShowNextChannel();
        }
        break;
        case Left:
        {
            funcShowPrevChannel();
        }
        default:
        break;
    }
    

    Something like this may help you.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.