Results 1 to 2 of 2

Thread: application paused

  1. #1
    Join Date
    Oct 2010
    Posts
    14
    Thanks
    7

    Default application paused

    Hi to everybody!

    I have a question. I make a simple application:
    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3. QApplication a(argc, argv);
    4.  
    5. QStringList numbers;
    6. numbers << "One" << "Two" << "Three" << "Four" << "Five";
    7. QAbstractItemModel *model = new QStringListModel(numbers);
    8. QListView *view = new QListView();
    9. view->setModel(model);
    10. view->show();
    11.  
    12. uchar char1 = (uchar)1;
    13. uchar char2 = (uchar)244;
    14.  
    15. //int x = (int)char1<<8 | char2;
    16. int x = 1024;
    17. uchar z = (uchar)(x>>8);
    18. uchar p = (uchar)x;
    19. qDebug() << "primo byte" << z;
    20. qDebug() << "secondo byte" << p;
    21.  
    22.  
    23. return a.exec();
    24. }
    To copy to clipboard, switch view to plain text mode 

    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!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: application paused

    Did you set there a break point by mistake?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 8
    Last Post: 5th November 2012, 08:43
  2. Replies: 2
    Last Post: 21st November 2010, 18:03
  3. Replies: 3
    Last Post: 20th October 2010, 22:36
  4. Replies: 3
    Last Post: 6th January 2010, 16:55
  5. Replies: 12
    Last Post: 29th February 2008, 13:35

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.