Symbian Options button (QAction::PositiveSoftKey)



  • Hello,

    I have a few questions about the Symbian "Options" button:

    • Is the options button basically a QPushButton or something else?

    • Can I get a pointer to it so that I can change the stylesheet etc?

    • Is there some signal sent which would tell me that it has been pressed?

    Grateful as always for any help I can get!

    Grumpy



  • bq. - Is the options button basically a QPushButton or something else?

    It is not a QPushButton. The control is an S60 control called the CBA.

    bq. - Can I get a pointer to it so that I can change the stylesheet etc?

    Nope since it's not a QWidget subclass.

    bq. - Is there some signal sent which would tell me that it has been pressed?

    You can register QActions to the softkeys using QWidget::addAction() and when the softkey is pressed, the QAction will emit the triggered() signal. Take a look at examples/widgets/softkeys.



  • Thanks! Getting the triggered() signal is a good start.

    Grumpy


Log in to reply
 

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