×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Using the iconic softkey features in Belle + Qt 4.7.4?

    Anyone able to explain how this is done? It's listed as one of the new features supported in 4.7.4 but there's nothing I've found so far that actually tells you how to take advantage of it...

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Re: Using the iconic softkey features in Belle + Qt 4.7.4?

    OK, it looks like calling QAction::setIcon is enough, but aren't there standard icons somewhere that can be used? In particular the "back" arrow icon??

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Re: Using the iconic softkey features in Belle + Qt 4.7.4?

    Another related question: since Qt doesn't seem to automatically detect whether or not a device is running Belle or an earlier Symbian version, how should I check this myself so the old softkey format can still be used on the older devices?

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    80

    Re: Using the iconic softkey features in Belle + Qt 4.7.4?

    Quote Originally Posted by andrew_ramsay View Post
    OK, it looks like calling QAction::setIcon is enough, but aren't there standard icons somewhere that can be used? In particular the "back" arrow icon??
    In my app i was able to get a play icon like this:
    style()->standardIcon(QStyle::SP_MediaPlay)

    I don't know if it's a bug or i did something wrong, but i needed to add this to the constructor of mainwindow to see the icons in the simulator correctly:
    #ifdef Q_WS_SIMULATOR
    setStyle(new QPlastiqueStyle); // Don't know why this is needed for icons to look right on simulator...
    #endif

  5. #5
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Re: Using the iconic softkey features in Belle + Qt 4.7.4?

    It seems that you can access the standard icons using the QML ToolBar element like this, but the app I'm working on is still using C++ to manage the softkeys and I'm not changing that part to QML just for this. If you just need the back+options icons like I did you can find the svgs here.

  6. #6
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Re: Using the iconic softkey features in Belle + Qt 4.7.4?

    To answer my own question about detecting whether the device is running Belle or not, use this API. You should get major.minor version = 5.3 on Belle and 5.2 on Anna.

Similar Threads

  1. SIP Profile for Symbian Belle
    By rectitude in forum General Development Questions
    Replies: 4
    Last Post: 2011-11-07, 07:03
  2. Replies: 6
    Last Post: 2011-08-19, 13:25
  3. Replies: 2
    Last Post: 2007-10-18, 01:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×