Help Needed
-
Dear Sir,
I am very new to Qt framework.
I have this code on click event of button bOK to set text of label lMsg.@
void MainWindow::on_bOK_clicked()
{
QtMobility::QMessageManager vMM;
int vFolderCount=vMM.countMessages();
ui->lMsg->setText(QString::number(vFolderCount,10));
}
@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.
-
I am not sure.. the best thing is to check documentation..
@ http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qmessagemanager.html
-
[quote author="spnvelvet" date="1311665337"]How to use @ to make code readable?
[/quote]"Here is a link to the forum help ":http://developer.qt.nokia.com/wiki/ForumHelp
-
spnvelvet: Please:
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.
-