Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor giu_sca's Avatar
    Join Date
    Dec 2010
    Posts
    79
    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 negus's Avatar
    Join Date
    Aug 2008
    Posts
    95
    Check on device if QMessageBox appears in the same way.

    Simulator rendering of QMessageBox is different respect device.

  3. #3
    Regular Contributor giu_sca's Avatar
    Join Date
    Dec 2010
    Posts
    79
    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
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    If you can't use remote device access you'd better at least learn how to use the emulator.

  5. #5
    Regular Contributor giu_sca's Avatar
    Join Date
    Dec 2010
    Posts
    79
    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
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    Your code seems me correct as danhicksbyron suggest you can try to test it on emulator.

  7. #7
    Regular Contributor rajan.mba's Avatar
    Join Date
    Feb 2009
    Location
    ASIA PACIFIC
    Posts
    108
    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 giu_sca's Avatar
    Join Date
    Dec 2010
    Posts
    79
    i hope

    thanks to all

Similar Threads

  1. strange behavior of python
    By AJ____92 in forum Python
    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 C++
    Replies: 0
    Last Post: 2006-03-15, 00:28
  4. strange behavior
    By amrdeus in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2004-08-04, 17:52
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved