在Qt4中打开windows下的目录采用
QDesktopServices::(QDesktopServices::***)方式,但是这种方式已经在Qt5中废弃了,会报错如下: error: 'storageLocation' is not a member of 'QDesktopServices' 需要采用下面方式:
QStandardPaths::(QStandardPaths::DesktopLocation)
头文件添加:
#include <QDesktopServices>
在Qt4中打开windows下的目录采用
QDesktopServices::(QDesktopServices::***)方式,但是这种方式已经在Qt5中废弃了,会报错如下: error: 'storageLocation' is not a member of 'QDesktopServices' 需要采用下面方式:
QStandardPaths::(QStandardPaths::DesktopLocation)
头文件添加:
#include <QDesktopServices>