Results 1 to 3 of 3

Thread: [SYMBIAN QT 4.7beta2] How to display messagebox at CENTRE of the screen with a button

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default [SYMBIAN QT 4.7beta2] How to display messagebox at CENTRE of the screen with a button

    Hi guys I'm trying to develop an application for symbian s60 5th devices..

    the application is almost ready but I have a problem...
    I want to have a messagebox just like this one
    http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian

    which appears in the centre of the screen...

    but If I create a messagebox I just get the stupid symbian popup that comes from the bottom and stops at the bottom of the screen...

    can anybody help me get that messagebox in the centre of the screen?

    Thanks in advance...

    Qt Code:
    1. m.setText("Something");
    2. m.setInformativeText("Somethidafsdffgng");
    3. m.move(40, 200);
    4. m.resize(30, 40);
    5. m.setStandardButtons(QMessageBox::Ok);
    To copy to clipboard, switch view to plain text mode 

    in this way I have the widget almost at the centre of the screen, but the resize() has no effect so it goes out of the screen on the right, and the OK button is still detached and it is in the bottom of the screen...

    I just want to get a messagebox like the one in the link...

    thanks in advance...

  2. #2
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: [SYMBIAN QT 4.7beta2] How to display messagebox at CENTRE of the screen with a bu

    anyone?

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: [SYMBIAN QT 4.7beta2] How to display messagebox at CENTRE of the screen with a bu

    I have no symbian device at the hand, so I can't check if it is possible with a standard QMessageBox, but you can create your own dialog and show it. Just subclass a QDialog add a label for text and a QDialogButtonBox.

Similar Threads

  1. How to display the button on toplevel?
    By mecland in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th May 2010, 11:58
  2. Replies: 2
    Last Post: 10th June 2009, 23:14
  3. How to Keep Splash Screen and App on Same Display
    By ajb_advance in forum Qt Programming
    Replies: 2
    Last Post: 4th March 2009, 11:49
  4. Display a QWidget using multi-screen
    By tarod in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2008, 14:02
  5. how to display a window full screen??
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2006, 12:07

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.