Qt Linux 下开发的一些类和功能函数的使用(添加中)

来源:互联网 发布:java 替换字符为空 编辑:程序博客网 时间:2024/05/19 02:18
一,    QDir dir;

    1,dir.mkpath(“/opt/*****/****”); //创建路径,创建成功返回true,已经有此路径也返回true。

bool QDir::mkpath ( const QString & dirPath ) const  //The function will create all parent directories necessary to create the directory.

    2,输出调试信息的文件功能函数和行数

#define DEBUG  qDebug( "File: %s, Func: %s,  Line: %d", __FILE__, __FUNCTION__, __LINE__);

0 0
原创粉丝点击