Results 1 to 2 of 2

Thread: Using exceptions with Qt

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Using exceptions with Qt

    I have done some search on Google about using exceptions with Qt. Some say you can, some say you can't. This has been asked here once but I want you to clarify how to use exceptions in combination with Qt.

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Using exceptions with Qt

    Quote Originally Posted by vu64 View Post
    I have done some search on Google about using exceptions with Qt. Some say you can, some say you can't. This has been asked here once but I want you to clarify how to use exceptions in combination with Qt.

    Qt Code:
    1. try {
    2. throw "throw something";
    3. catch( ... ) {
    4. qDebug() << "caught something";
    5. }
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to lni for this useful post:

    araglin (17th May 2009)

Similar Threads

  1. Replies: 5
    Last Post: 6th September 2011, 23:19
  2. sql Exceptions
    By peace_comp in forum Qt Programming
    Replies: 2
    Last Post: 10th October 2008, 02:51
  3. Exceptions / setjmp/longjmp question
    By Aceman2000 in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2008, 17:14
  4. QT and exceptions
    By krivenok in forum Qt Programming
    Replies: 4
    Last Post: 25th January 2006, 14:05
  5. Exceptions and qApp->processEvents()
    By mcostalba in forum Qt Programming
    Replies: 3
    Last Post: 8th January 2006, 17:06

Tags for this Thread

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.