Home > Mobile >  Qt 4.8 QFileDialog selectedFilter interface in Qt 5.9 how to do
Qt 4.8 QFileDialog selectedFilter interface in Qt 5.9 how to do

Time:11-07

Everybody is good! A project from Qt 4.8 upgrade to Qt 5.9.4, there is a problem: the QFileDialog selectedFilter interface in Qt 4.8 Qt 5.9, selectedFilter this function should be to obtain the user's choice of filters,

CodePudding user response:

I look at the assistant, these two interfaces should be able to solve your problem?
QString selectedMimeTypeFilter (const)
QString selectedNameFilter (const)

CodePudding user response:

Check 4.8 document can see selectedFilter () has been abandoned interface, namely originally be selectedNameFilter ()
  •  Tags:  
  • Qt
  • Related