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

About QThread

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 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.
  • S Offline
    S Offline
    stevewang
    wrote on last edited by
    #1

    Hi all,

    I have a command-line tool that I am calling using QThread.
    One problem is that the command-line tool will crash if there is something wrong with the input data. However, I want the program to pop-up a dialog and tell the user to check the input data, rather than crash directly.

    Is there any method to achieve this?

    Thanks a lot.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      The "QProcess":http://qt-project.org/doc/qt-5/qprocess.html with "processError":http://qt-project.org/doc/qt-5/qprocess.html#ProcessError-enum which can be checked.

      Vote the answer(s) that helped you to solve your issue(s)

      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