c++ - Cannot change file type in Linux version -


changing file type works windows not work in linux. in linux not change file type.

qregexp pattern("\\b(stl)\\b", qt::caseinsensitive); if (info.suffix().isempty()) {     filename += qlatin1string(".") + "stl"; } else if (!pattern.exactmatch(info.suffix())) {     filename += qlatin1string(".") + "stl"; } 

the filetype displays "plain text document (text/plain)" instead of stl (stereolithography potentially).

as can see code, try change file extension. may work on windows. linux doesn't use file extension file type determination. linux checking file content this.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -