I am very new to Qt framework.
I have this code on click event of button bOK to set text of label lMsg.
What I am getting in output is 0.
What has gone wrong.
Edit: please use @ tags around your code; Andre
Place your code enclosed in @, that will make it more readable..
You can call error() on vMM to get to know the error that has occurred with previous call.
How to use @ to make code readable?
vMM.error() return object of type QMessageManager::Error type.
How to get actual error out of it to show in label.
I am not sure.. the best thing is to check documentation..
[quote author="spnvelvet" date="1311665337"]How to use @ to make code readable?
"Here is a link to the forum help ":http://developer.qt.nokia.com/wiki/ForumHelp
Use a message title that conveys the actual problem, not that you need help solving it (almost everybody posting needs help)
Don't flag your messages as urgent. It may be for you, but that is your problem, not ours.
For more details on both these points (as well as other important pointers on how to get better help), see "this":http://www.catb.org/~esr/faqs/smart-questions.html FAQ.
[quote author="spnvelvet" date="1311655732"]What I am getting in output is 0.
Is it possible that there are actually no messages in the message store?
If not, calling vMM.error() as Vijay and spnvelvet recommended is probably a good idea.