×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    79

    QMessageBox strange behavior

    hi,

    I want use QMessageBox functionality to interact with user.
    I have wrote this code:

    QMessageBox msgBox;
    msgBox.setText("Warning");
    msgBox.setInformativeText("Do you want to delete your registration?");
    msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Cancel);
    msgBox.setDefaultButton(QMessageBox::Cancel);
    msgBox.exec();

    When the user press cancel button the application show him this message, but I have a strange behavior:

    http://img826.imageshack.us/i/deletez.png/

    I see only one button and I see the message box in the top left corner of the device

    How can I solve this problems?

    Thanks

  2. #2
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    95

    Re: QMessageBox strange behavior

    Check on device if QMessageBox appears in the same way.

    Simulator rendering of QMessageBox is different respect device.

  3. #3
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    79

    Re: QMessageBox strange behavior

    Now, I haven't device and Company security policy can't allow me to use Nokia Remote Device Access.

    So, do you think it's correct my code?

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QMessageBox strange behavior

    If you can't use remote device access you'd better at least learn how to use the emulator.

  5. #5
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    79

    Re: QMessageBox strange behavior

    You are in right, but I don't undestand if it's ok o if i have to change some code.
    I have seen each example in the net but know what is wrong.

  6. #6
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: QMessageBox strange behavior

    Your code seems me correct as danhicksbyron suggest you can try to test it on emulator.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  7. #7
    Regular Contributor
    Join Date
    Feb 2009
    Location
    ASIA PACIFIC
    Posts
    108

    Re: QMessageBox strange behavior

    Quote Originally Posted by giu_sca View Post
    You are in right, but I don't undestand if it's ok o if i have to change some code.
    I have seen each example in the net but know what is wrong.
    Don't worry. I faced the same issue. The code will work perfectly on device. The dialogues will show at the bottom screen as expected. It is a simulator only issue.
    Website: http://nmamobiles.byethost2.com
    Blog: http://nmamobiles.byethost2.com/blog

  8. #8
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    79

    Re: QMessageBox strange behavior

    i hope

    thanks to all

Similar Threads

  1. strange behavior of python
    By AJ____92 in forum Symbian
    Replies: 6
    Last Post: 2010-05-24, 15:55
  2. strange behavior
    By sfahadahmed in forum Mobile Java General
    Replies: 0
    Last Post: 2007-12-12, 17:17
  3. Strange Behavior
    By akermen in forum Symbian
    Replies: 0
    Last Post: 2006-03-15, 00:28
  4. Please help me! Strange behavior...
    By djpirra in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-17, 11:52

Posting Permissions

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