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
Forum Updated to NodeBB v4.3 + New Features

QT Error Checking

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.0k 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 20 Jun 2017, 11:33 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

    J 1 Reply Last reply 20 Jun 2017, 11:50
    0
    • P Offline
      P Offline
      Pradeep Kumar
      wrote on 20 Jun 2017, 11:41 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
        20 Jun 2017, 11:33

        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

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 20 Jun 2017, 11:50 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 20 Jun 2017, 12:39 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

          1/4

          20 Jun 2017, 11:33

          • Login

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