[Qt-interest] Fwd: Problems with QDropEvent , got SIGSEGV
Jaco Naude
naude.jaco at gmail.com
Thu Feb 25 08:38:54 CET 2010
Should it be
updateStatusBar(QString(tr("Analyse of %1 complete")).arg(fName));
Jaco
On Thu, Feb 25, 2010 at 8:57 AM, Aaron Lewis <aaron.lewis1989 at gmail.com> wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list