[Qt-embedded-interest] Qt Embedded 4.5 hang

OS Prog osprog at gmail.com
Tue Mar 31 17:22:24 CEST 2009


Hi Tom,
Thank you for the reply.

I'm trying to figure out where the problem comes from. I worked with Qt4.4.3
and everything was fine. When I switched to 4.5 - the problem appears. I'm
not sure if the problem is with my hardware, the ucLinux itself or Qt. The
same hardware and ucLinux worked with Qt4.4.3, but fails with 4.5.
The application is prety simple, just a QComboBox in a QWidget. The code is:

#include <QtGui>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QWidget w;

    QVBoxLayout *bl = new QVBoxLayout(&w);
    QComboBox *pcb = new QComboBox();

    pcb->addItem("1");
    pcb->addItem("2");
    pcb->addItem("3");
    bl->addWidget(pcb);
    bl->addStretch();
    w.setLayout(bl);

    w.show();
    return a.exec();
}

Thanks again.
Best regards,
Nikolay


> Date: Tue, 31 Mar 2009 07:16:53 +0100
> From: Tom Cooksey <thomas.cooksey at nokia.com>
> Subject: Re: [Qt-embedded-interest] Qt Embedded 4.5 hang
> To: qt-embedded-interest at trolltech.com
> Message-ID: <200903310816.54019.thomas.cooksey at nokia.com>
> Content-Type: text/plain;  charset="us-ascii"
>
> > Hello,
> > I've worked with Qt 4.4.3, and I've updated to 4.5, which is much
> > faster, but...
> > The problem is that QComboBox doesn't work for me. I've made a simple
> > application - just QMainWindow and in constructor I create QComboBox
> > widget like:
> > {
> > QComboBox *pcb = new QComboBox(this);
> >
> > pcb->addItem("1");
> > pcb->addItem("2");
> > pcb->addItem("3");
> > pcb->move(10,10);
> > }
> > The result is - I have a ComboBox on the screen, but when I touch it all
> > application freezes...
> > I subclassed the QComboBox to see the mosePrees events, and the event is
> > called only once (first time when the widget is touched, next times -
> > nothing).
> > Next I've subclassed QMainWindow to see if the events are received from
> > other widgets. When QComboBox is not pressed all events are received,
> > but when I touch the QComboBox - no more events come.
> > The same behavior is with QRadioButton widget.
> >
> > When I run more complicated application, with animation framework, at
> > the middle of the animation (at one and the same place) it hangs. The
> > animation is just moving the widgets (no new widgets are created or
> > deleted).
> >
> > About the target -
> > BF527 EZKIT
> > Linux version 2.6.28-ADI-2009R1-pre-svn6000 (root at dlnx764) (gcc version
> > 4.1.2 (ADI svn))
> > Qt4.5
> > Has anybody faced similar issue?
>
> Not that I know of. Do you mind trying to reduce the problem to a small,
> 50-
> line test app? If the problem persists, post the test app and I'll take a
> look.
>
>
>
> Cheers,
>
> Tom
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090331/922b7b08/attachment.html 


More information about the Qt-embedded-interest mailing list