PDA

View Full Version : application paused



dmartino
25th March 2011, 11:03
Hi to everybody!

I have a question. I make a simple application:


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

QStringList numbers;
numbers << "One" << "Two" << "Three" << "Four" << "Five";
QAbstractItemModel *model = new QStringListModel(numbers);
QListView *view = new QListView();
view->setModel(model);
view->show();

uchar char1 = (uchar)1;
uchar char2 = (uchar)244;

//int x = (int)char1<<8 | char2;
int x = 1024;
uchar z = (uchar)(x>>8);
uchar p = (uchar)x;
qDebug() << "primo byte" << z;
qDebug() << "secondo byte" << p;


return a.exec();
}


when i do debugging my application pause in
C:\Qt\ ..\4.7.0\src\corelib\kernel\qeventdispatcher_win.c pp at line 827

How can resolve?

Thanks!

high_flyer
25th March 2011, 11:50
Did you set there a break point by mistake?