Results 1 to 12 of 12

Thread: error message appears when function is called

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default error message appears when function is called

    An error message prompt appears when function, processInputData(param1, param2, ....) is called.
    The application exits when 'Don't Send' button on the message prompt is clicked on.
    How do I resolve this issue?

    Here is the code:
    Qt Code:
    1. New::New(QWidget *parent) :
    2. QDialog(parent)
    3. {
    4. okButton = createButton(tr("&OK"), SLOT(messageOk()));
    5.  
    6. createCMRFilesMessageGroupBox();
    7. createEDMessageGroupBox();
    8. createESMessageGroupBox();
    9.  
    10. createmainLayout();
    11.  
    12. setWindowTitle(tr("New Case"));
    13. resize(450, 100);
    14. }
    15. void New::messageOk()
    16. {
    17.  
    18. QMessageBox::about(this,tr("OK clicked"),tr("OK"));
    19. processInputData(endocardialfileName.toAscii(), //convert 'QString' to 'const char*'
    20. epicardialfileName.toAscii(), //convert 'QString' to 'const char*'
    21. 1,
    22. 1.1,
    23. 1.1,
    24. 1,
    25. 1.1,
    26. 1.1);
    27.  
    28.  
    29. }
    To copy to clipboard, switch view to plain text mode 

    Definition of processInputData( ):
    Qt Code:
    1. processInputData(const char*, const char* ,
    2. const int,
    3. const float, const float,
    4. const int,
    5. const float, const float );
    To copy to clipboard, switch view to plain text mode 
    Last edited by babygal; 11th June 2010 at 08:22.

Similar Threads

  1. error message
    By offline in forum Qt Programming
    Replies: 1
    Last Post: 5th November 2009, 14:08
  2. wrong virtual function called at some events on MacOS?
    By akos.maroy in forum Qt Programming
    Replies: 0
    Last Post: 3rd July 2009, 11:06
  3. Public function called on MDISubWindow ignores code
    By ad5xj in forum Qt Programming
    Replies: 2
    Last Post: 24th February 2009, 16:29
  4. QString - no member function called 'find'
    By pitterb in forum Newbie
    Replies: 1
    Last Post: 13th January 2009, 11:31
  5. getting the error message when trying to run the application in QT
    By pallavi Boyapat in forum Qt Programming
    Replies: 49
    Last Post: 31st October 2008, 12:18

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
  •  
Qt is a trademark of The Qt Company.