I am using a Logger window, wich is a simple widget inheriting from QPlainTextEdit
.
Now I needed to print several messages at the same time (I made this thread safe with a mutex), but it crashes anyway. This is the message from gdb
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff56c5cb9 in QTextLine::draw(QPainter*, QPointF const&, QTextLayout::FormatRange const*) const ()
from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
I am using Qt 5.4, but tried Qt 5.7 and the crash persists. Does anyone have a hint? Should I inherit from some other widget?