15 #include <QErrorMessage> 19 #endif // MRPT_HAS_Qt5 22 const std::function<
void()>& tryPart,
const std::string& catchMessage)
28 catch (std::exception& e)
42 msg.showMessage(QString::fromStdString(str));
44 #elif MRPT_HAS_WXWIDGETS 45 wxMessageBox(
_U(str), _(
"Exception"));
47 std::cerr << str << std::endl;
48 #endif // MRPT_HAS_Qt5
void showErrorMessage(const std::string &str)
GLsizei const GLchar ** string
void tryCatch(const std::function< void()> &tryPart, const std::string &catchMessage)