×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    16

    Problem when creating different sofy keys on different tabs

    Hi,

    I was trying to create different softkeys on different Tabs. Creating the softkeys was fine but however until I press on one of the widgets the softkeys aren't visible. Here is how my code looks like

    QMainWindow *mainWindow = new QMainWIndow;
    QTabWidget *central = new QTabWidget;
    setCentralWidget(central);
    xTab = new QWidget;
    .
    .
    .
    yTab = new QWidget;
    central->addTab(xTab);
    central->addTab(yTab);
    connect(central, SIGNAL(currentChanged(int)), this, SLOT(onTabChanged(int)));
    }

    //SLOT

    void onTabChanged(int index)
    {
    if(index ==1)
    {
    sKey1 = new QAction(yTab);
    skey1->setSoftKeyRole(QAction:: PositiveSoftKey);
    yTab->addAction(sKey1);
    }
    }

    This skey1 softkey I created in yTab is visible only when I click on one of the widgets inside the tab.
    However if I add the sKey1 to central it displays properly but as I need to have different soft keys appear on different tabs that doesn't work.
    I really appreciate if anyone can provide any ideas/suggestions.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Problem when creating different sofy keys on different tabs

    HI, Shredda

    Softkeys will be visible in the control pane of a Qt for Symbian application, if a focused widget has actions (QAction) with a softkey role defined..

    See this article which clearly explains how soft-keys made visible. http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian

    Regards,
    Rahul

Similar Threads

  1. Help: Creating TABs in Symbian J2ME application
    By ayandebnath in forum Mobile Java General
    Replies: 1
    Last Post: 2010-02-11, 14:29
  2. Replies: 9
    Last Post: 2008-08-17, 19:03
  3. creating dynamic tabs
    By arumilli in forum Symbian
    Replies: 0
    Last Post: 2008-08-06, 05:55
  4. Creating Shortcut Keys/Hotkeys
    By kkboy1 in forum Symbian
    Replies: 0
    Last Post: 2005-08-04, 23:03
  5. Creating Tabs With Series 60
    By aap1 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-09, 11:18

Posting Permissions

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