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 Error Checking
Qt 6.11 is out! See what's new in the release blog

QT Error Checking

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k 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.
  • R Offline
    R Offline
    rondo
    wrote on last edited by
    #1

    Hello,

    I have a question about error-checks.

    1. Is there any equivalent of GetLastError() (WINAPI) function in QT ?

    2. How can I get error details of QFile or QImage programatically ?

    Thanks

    jsulmJ 1 Reply Last reply
    0
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by
      #2

      Hi,

      @rondo

      u can use error and fileerror from QFileDevice.

      Thanks,

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      4
      • R rondo

        Hello,

        I have a question about error-checks.

        1. Is there any equivalent of GetLastError() (WINAPI) function in QT ?

        2. How can I get error details of QFile or QImage programatically ?

        Thanks

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @rondo said in QT Error Checking:

        QImage

        Regarding QImage: what error are you interested in?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • R Offline
          R Offline
          rondo
          wrote on last edited by
          #4

          @Pradeep-Kumar thanks!

          @jsulm

          I am interested about details of error in QImage::load method.

          Any suggestions?

          1 Reply Last reply
          1

          • Login

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