Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt project with exception handling mechanism
Qt 6.11 is out! See what's new in the release blog

Qt project with exception handling mechanism

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Ghost
    wrote on last edited by
    #1

    I am aware that exception handling has a limited support in Qt. However, I desire to study source code of a Qt project that has used exception handling, just so to see to what extent I should be using it, if at all. I couldn't find a known Qt project that does this, though.
    Could anybody point me to such a project - high code quality as well as exception handling mechanism?

    Bhoot

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,
      Qt doesn't use exception for some reason

      exceptions are very CPU consuming;

      exceptions are not fully supported on all platforms;

      However you can write your Qt code using exceptions.

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Ghost
        wrote on last edited by
        #3

        Yes, I am aware of those points. Nevertheless, I wanted to see if some nice projects has already put exceptions in use, so that I can study how safely I can use them myself.
        Qt doesn't use exceptions for part historical reasons. I bet if the framework had been created in recent years, we would have seen it using a lot of exceptions.
        I heard Qt's recent libraries uses exceptions. If there are no other projects, I would like to be pointed out to those libraries too.

        [quote author="mcosta" date="1379602425"]Hi,
        Qt doesn't use exception for some reason

        exceptions are very CPU consuming;

        exceptions are not fully supported on all platforms;

        However you can write your Qt code using exceptions.[/quote]

        Bhoot

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved