Skip to content

[SMS App] Displaying thumbnails in QML

Summary

  • The Android side pushes the bulk message packet to desktop. Unlike the previous implementation, the android side while creating the bulk SMS packet adds three extra fields if the message has multimedia attachment. these fields are generally (mimeType, partURI and Base64 String of the thumbnail).

  • At the desktop side, the ConversationModel class converts the base64 String back into QImage and provides it to the ThumbnailProvider class which basically inherits the QQuickImageProvider class and helps in transferring QImage type from c++ to QML as source Url.

Screenshot_20200708_185741 Screenshot_20200708_185821 Screenshot_20200708_185753

Edited by Aniket Kumar

Merge request reports