Qt 6.12 LTS is out! See what's new in the release
blog
How to display icon file and not path to file
-
Hello, I want to create a chat desktop app. I want to send files and messages, like any other messaging app. When I drop or select file from my pc appear only path to file and not icon file.
I have this :
I want to achive this:
Or something like that.
Can you please help me with some links or docs, that I can read to achive my goal. -
You can get the icon for a file type via QFileIconProvider
-
You can get the icon for a file type via QFileIconProvider
@Christian-Ehrlicher Thank you, one more question please.
Do you think i pick the right containers for my chat app and file sender app?

I cant find a function of QTextEdit to print the icon for the file