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.

Cannot send TRDP MD and PD messages

I am developing a TRDP based communication. I am using the TRDP project as a library in a QT project and it’s tested that it works. The idea is to init an object of class Trdp and call the methods sendPDMessage or sendMDMessage depending on the usage. But I do not receive any packets on the other side. Using Wireshark, I do not see any packets from the TRDP. If someone can help debugging this and finding the problem, I will be thankful!