Unsolved the tool crashes
My tool crashes when I open my QT Gui
QPainter::end: Painter ended with 2 saved states
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'std::bad_array_new_length'
Can someone guide me on what could be the reason
@Qt-Enthusiast Sure, give us a backtrace to look at and some code, or if it's a large amount of code, just the backtrace to get started.
The problem is an std array of some sort that is throwing an exception. Unfortunately this exception is in an event handler, which is not supported by Qt. So check your slots and see which one is using a std array type component and analyze that for something that would throw an exception.
That's all the help I can give without seeing the stack dump or the code.