How can I make qt detect a file extension in c ++
-
wrote on 7 Dec 2018, 12:23 last edited by
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
-
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
@Nathan-Miguel said in How can I make qt detect a file extension in c ++:
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?!
-
wrote on 7 Dec 2018, 12:29 last edited by
Hi,
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
1/3