Results 1 to 8 of 8

Thread: Qt on Meego

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt on Meego

    How exactly are you trying to display the menu? What is myMenuKey?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2

    Default Re: Qt on Meego

    Hi,

    myMenuKey is a QAction. As in my code snippet, I am trying to add two menu options "Clear All History" and "About" using QMenu::addAction()

    And I am creating two new QAction for "Options" and "Exit" as below and setting the two menu actions "Clear All History" and "About" to "Options"

    QAction* myMenuKey = new QAction(tr("Options"), this);
    myMenuKey->setSoftKeyRole(QAction::PositiveSoftKey);
    myMenuKey->setMenu(menu);
    addAction(myMenuKey );

    QAction* exitAction = new QAction(tr("Exit"), this);
    exitAction->setSoftKeyRole(QAction::NegativeSoftKey);
    addAction(exitAction );

    Thanks in advance,
    Reshma

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt on Meego

    I can see it's a QAction. But where do you put it after you create it? What's the "this" object?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4

    Default Re: Qt on Meego

    Hi,

    "this" is a QWidget. QActions are added to the QWidget.

    Regards,
    Reshma

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt on Meego

    I know it's a widget but what widget is it? I'm not asking about the class name but the role it has in your program. Also, does the "Exit" action work? Maybe the problem is with the soft keys?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6

    Default Re: Qt on Meego

    Hi Wysota,

    Yes exactly, problem is with softkeys. I can't see them on the Meego device. The same Qt piece of code works for Symbian devices and I see the softkeys. How can I get this to work for Meego?
    QWidget is the main widget in my application. I want to add some softkeys to this widget to perform certain actions.

    Thanks in advance,
    Reshma

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt on Meego

    As far as I understand it soft keys are only supported on Symbian. At least that's what the docs are suggesting.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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.