Relative Content

Tag Archive for c++qt

Save a file formatting the text Qt

I’m currently making a notepad and I’ve found a problem.
I want to save a file formatting the text so with different fonts, point sizes and colors in a .rtf file, but it just saves without formatting it so without any color or different fonts.

Destructor for library object ends up in binary

I have a closed source binary with debug symbols compiled against QT 5.3.2. I tried to run it on Debian Bookworm, using the QT version in the repository (5.15.8). It starts up but crashes with a segmentation fault. I then used gdb and IDA to figure out what was going on, and for some reason the destructor QDebug::~QDebug is included in the binary, while the constructor is called from the imported QMessageLogger::debug. During the destructor, there is a null pointer accessed.