×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    34

    How to send a system popup message in Qt 4.6

    Hi,

    I need to display a message to the user from my application which is running in the background. What would be the simplest way to do that? I am building my app with Qt 4.6 and S60 5th edition sdk.

    Thanks

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to send a system popup message in Qt 4.6

    there is more then one way of doing this .. i prefer using Symbian Native Dialogs in Qt (for now as i donot care about other platforms right now) one example is http://wiki.forum.nokia.com/index.ph...ogs_in_Qt_Apps

    Ideally you should be using a separate EXE to show your dialogs

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

    Re: How to send a system popup message in Qt 4.6

    Quote Originally Posted by sevdotcom View Post
    Hi,

    I need to display a message to the user from my application which is running in the background. What would be the simplest way to do that? I am building my app with Qt 4.6 and S60 5th edition sdk.

    Thanks
    Hi,

    You can generate dialog using the different class of Qt,
    As, one example is QProgressDialog : http://wiki.forum.nokia.com/index.ph...ProgressDialog

    See the above example ,means how the dialog is generated.

    Best regards,

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to send a system popup message in Qt 4.6

    Quote Originally Posted by rahulvala View Post
    Hi,

    You can generate dialog using the different class of Qt,
    As, one example is QProgressDialog : http://wiki.forum.nokia.com/index.ph...ProgressDialog

    See the above example ,means how the dialog is generated.

    Best regards,
    hi can you explain me how it is related to
    I need to display a message to the user from my application which is running in the background.

  5. #5
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: How to send a system popup message in Qt 4.6

    Quote Originally Posted by sevdotcom View Post
    I need to display a message to the user from my application which is running in the background. What would be the simplest way to do that? I am building my app with Qt 4.6 and S60 5th edition sdk.
    Have you tried good old http://doc.qt.nokia.com/4.7-snapshot/qmessagebox.html ? I would assume a QMessageBox::alert(..) should work that way (it does on Maemo and the desktop platforms).

  6. #6
    Registered User
    Join Date
    Dec 2010
    Posts
    34

    Re: How to send a system popup message in Qt 4.6

    Hi Skumar,

    Thanks for the reply. What are the other ways of doing this. I tried using the Symbian dialogs instructions but run into some issues.

    Thank you again

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to send a system popup message in Qt 4.6

    as suggested
    Ideally you should be using a separate EXE to show your dialogs
    You can also create dialog in your backgroud application to show.

  8. #8
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to send a system popup message in Qt 4.6

    Code:
    	TApaTask task(mVreeEikonEnv->WsSession( ));
    	task.SetWgId(mVreeEikonEnv->RootWin().Identifier());
    	task.BringToForeground();
            QMessageBox msg = new QMessageBox(this);
            <initialize QMessageBox>
            int reply = msg ->exec();
            <handle reply>
            task.SendToBackground();

Similar Threads

  1. Message Sending Popup
    By giaviv in forum Mobile Java General
    Replies: 10
    Last Post: 2010-04-13, 12:04
  2. new message popup dialog
    By cool_ranjeet in forum Symbian
    Replies: 11
    Last Post: 2009-11-05, 16:06
  3. Replies: 1
    Last Post: 2007-12-02, 17:34
  4. popup message with 7650
    By barmal in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-02-05, 16:53
  5. broadcasting message system and receiver filter system
    By Nokia_Archive in forum Smart Messaging
    Replies: 1
    Last Post: 2002-05-20, 13:23

Posting Permissions

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