How can I make qt detect a file extension in c ++
I'm doing a denoiser, I'm using the file dialog to open a file, but how can I do it to detect the name of the extension that was opened
but how can I do it to detect the name of the extension that was opened
you get the filename from the file dialog, where is your issue?!
uses the class QFileInfo, and you pass to its constructor your file or the path of your file then to see the extension of your file you will use the suffix() method of the class QFileInfo