[Qt-interest] Problems with QDropEvent , got SIGSEGV
Aaron Lewis
aaron.lewis1989 at gmail.com
Thu Feb 25 07:57:25 CET 2010
Class qbestway inherits QMainWindow (public)
Here's some sample code:
--snip--
void qbestway::dropEvent(QDropEvent *event)
{
--snip--
updateStatusBar(tr("Analyse of %1 complete").arg(fName));
//everything works fine , when this line is commented out
}
void qbestway::updateStatusBar(const QString newStr)
{
if(newStr.isEmpty())
return;
ui->label->setText(newStr); /// Problems is here , that i can't
set a label .. got SegmentFault , is there some limits ?
}
--snip--
Any ideas to make it work ?
Thanks in advance.
--
Best Regards,
Aaron Lewis - PGP: 0xA476D2E9
irc: A4r0n on freenode
More information about the Qt-interest-old
mailing list