Results 1 to 8 of 8

Thread: Qt on Meego

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Qt on Meego

    Hello All,

    I had a question on how to display Qt menu's on Meego platform?
    Following code snippet works on Symbian and Maemo platforms but doesn't work on Meego. Can anyone help with this issue?
    Qt Code:
    1. QMenu* menu = new QMenu(this);
    2. m_clearAllAction = new QAction(tr("Clear all history"), this);
    3. connect(m_clearAllAction,SIGNAL(triggered()), this, SLOT(clearSearchHistory()) );
    4. menu->addAction(m_clearAllAction);
    5.  
    6. menu->addAction(tr("About"), this, SLOT(about()));
    7. m_clearAllAction->setEnabled(false);
    8.  
    9. QAction* myMenuKey = new QAction(tr("Options"), this);
    10. myMenuKey->setSoftKeyRole(QAction::PositiveSoftKey);
    11. myMenuKey->setMenu(menu);
    12. addAction(myMenuKey );
    13.  
    14. QAction* exitAction = new QAction(tr("Exit"), this);
    15. exitAction->setSoftKeyRole(QAction::NegativeSoftKey);
    16. addAction(exitAction );
    17. connect(exitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
    To copy to clipboard, switch view to plain text mode 
    Thanks in advance,
    Reshma
    Last edited by high_flyer; 9th December 2010 at 16:19.

Similar Threads

  1. Automated GUI Testing on MeeGo and QML with Squish
    By reggie in forum General Discussion
    Replies: 0
    Last Post: 25th November 2010, 11:00
  2. Qt on MeeGo
    By deepakn in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2010, 10:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.