×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    35

    Creating a Pop up window for 'About' screen

    Hi all,

    I am trying to create a small pop up window where I want to display 'About' information.

    Can someone show me a good example

    Thanks
    My Website: The Cheap Passes (dot) com

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    210

    Re: Creating a Pop up window for 'About' screen

    I just used a QDiaolg window for my about screen.
    Code:
    //About screen
    void NoSmoking::about()
    {
        aboutDialog dlg(this);
      #ifdef Q_WS_S60
        dlg.showMaximized();
      #else
        dlg.showNormal();
      #endif
        dlg.exec();
    }
    Cheers,
    Jon

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

    Re: Creating a Pop up window for 'About' screen

    Qt actually has a ready-made method for that, see http://doc.qt.nokia.com/latest/qmessagebox.html#about

  4. #4
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Creating a Pop up window for 'About' screen

    Hi,
    this is even shorter:
    Code:
    void QtEntryViewer::aboutClicked()
    {
    	QMessageBox x;
    	x.setText(QObject::tr("Tamoggemon PassPeon\nv 1.0 beta 3\n(c)Tamoggemon Ltd 2010\nwww.tamoggemon.com"));
    	x.setIcon(QMessageBox::Information);
    	x.exec();
    }
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

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

    Re: Creating a Pop up window for 'About' screen

    How is it shorter ? The QMessageBox::about is a static method, that's as close to a oneliner as it can get

  6. #6
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Creating a Pop up window for 'About' screen

    Quote Originally Posted by achipa View Post
    How is it shorter ? The QMessageBox::about is a static method, that's as close to a oneliner as it can get
    Very sorry. I misread your link in the evening when posting this.

    Please forgive...

    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

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

    Re: Creating a Pop up window for 'About' screen

    Hey, no worries, was just curious if I misunderstood something

Similar Threads

  1. small icon in pop-up window???
    By chandantheracer in forum Symbian
    Replies: 2
    Last Post: 2010-06-28, 21:53
  2. block pop-up window
    By pipfeng in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2009-09-17, 08:53
  3. Automatic pop up window
    By freaky_911 in forum Symbian
    Replies: 3
    Last Post: 2008-03-23, 17:01
  4. I want to make a pop up window
    By w_hashem12 in forum Symbian
    Replies: 10
    Last Post: 2005-08-26, 11:31
  5. Replies: 2
    Last Post: 2004-07-12, 14:49

Posting Permissions

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