Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Symbian Options button (QAction::PositiveSoftKey)

    Mobile and Embedded
    2
    3
    1739
    Loading More Posts
    • 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.
    • G
      grumpy last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J
        jbarron last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • G
          grumpy last edited by

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

          Grumpy

          1 Reply Last reply Reply Quote 0
          • First post
            Last post