Strange bug with notifications on KDE apps (only flatpak version)

When building the application as Flatpak, using setPixmap in notifications causes the application icon in the notification header to disappear. Instead, a plasma-workspace icon is displayed.
This happens because in the Flatpak environment, the pixmap handling mechanism may conflict with the display of the application icon.
More info: https://bugs.kde.org/show_bug.cgi?id=511699