Results 1 to 3 of 3

Thread: Qt 4.5 Embedded hangs

  1. #1

    Default Qt 4.5 Embedded hangs

    Hi,

    This code hangs on embedded when I touch the combobox:

    #include <QtGui>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    QWidget w;
    QVBoxLayout bl(&w);
    QComboBox pcb;
    pcb.addItem("1");
    pcb.addItem("2");
    pcb.addItem("3");
    bl.addWidget(&pcb);
    bl.addStretch();
    w.setLayout(&bl);
    w.show();
    return a.exec();
    }

    when I comment "pcb.addItem("x")" lines the application doesn't hang and it seems that the combobox accepts the events (seems to be redrawed). With these lines uncommented it hangs when the combo box is touched.

    I noticed it hangs with QRadioButton also (instead of QComboBox), but with QPushButton - doesn't (it works).

    Any ideas?
    Regards,
    Nikolay

  2. #2
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.5 Embedded hangs

    Quote Originally Posted by nickich View Post
    Hi,

    This code hangs on embedded when I touch the combobox:

    #include <QtGui>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    QWidget w;
    QVBoxLayout bl(&w);
    QComboBox pcb;
    pcb.addItem("1");
    pcb.addItem("2");
    pcb.addItem("3");
    bl.addWidget(&pcb);
    bl.addStretch();
    w.setLayout(&bl);
    w.show();
    return a.exec();
    }

    when I comment "pcb.addItem("x")" lines the application doesn't hang and it seems that the combobox accepts the events (seems to be redrawed). With these lines uncommented it hangs when the combo box is touched.

    I noticed it hangs with QRadioButton also (instead of QComboBox), but with QPushButton - doesn't (it works).

    Any ideas?
    Regards,
    Nikolay
    works for me. Maybe your stack is too small? try QComboBox* pcb=new QComboBox;

  3. #3

    Default Re: Qt 4.5 Embedded hangs

    Quote Originally Posted by Sheng View Post
    works for me. Maybe your stack is too small? try QComboBox* pcb=new QComboBox;
    I tried. It's the same.
    It's strange, because the QPushButton, for example, works.

    BTW. What's your target? do you use tslib?
    ...that's what I'm thinking at the moment...

Similar Threads

  1. Qt Embedded
    By lixo1 in forum Newbie
    Replies: 4
    Last Post: 2nd March 2009, 17:24
  2. Replies: 1
    Last Post: 3rd December 2008, 22:15
  3. Qt Embedded + OpenGL problem
    By EeroS in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 7th October 2008, 14:32
  4. embedded font/locale problems
    By GW in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 10th October 2007, 15:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.