Qt创建完整路径-mkpath

https://blog.csdn.net/wuquan_1230/article/details/122072094

bool CreateDir(const QString &path)
{
QDir dir;
return dir.mkpath(path);
}

QT之QDir的mkdir和mkpath区别 

https://tukongdashu.blog.csdn.net/article/details/104903907

 

Qt判断文件 或 文件夹(路径)是否存在

https://blog.csdn.net/iamplane/article/details/70432660

 

QT M_PI

#include <QtMath>

 

Qt designer 中的布局与打破布局

https://blog.csdn.net/qustdjx/article/details/7942286

P:布局好之后记得调整margin

 

 

【qAbs】Qt中获取数据的绝对值

double i_value = qAbs(i);

获取数据的绝对值,可以获取int ,double,float各种数据类型

 

Qt中float转字符串固定位数和小数位

https://blog.csdn.net/qq_30725967/article/details/108440574

 

 

QString 转 double 小数点问题

#include
QString num(“12.3456789”);
double d = num.toDouble();

Qt 取整函数 Ceil Floor Round

qCeil 向上取整

qFloor 向下取整

qRound 四舍五入

 

Qt中的四舍五入取整

https://wenku.baidu.com/view/583ebd37a11614791711cc7931b765ce05087a74.html

 

 

"undefined reference to XXX"问题总结

https://zhuanlan.zhihu.com/p/81681440

https://segmentfault.com/a/1190000006049907

 

QT does not name a type问题

https://blog.csdn.net/yamanda/article/details/85175801

1、使用信号和槽函数,这个没有太大的问题

2、让这两个类互相包含彼此的指针,然后在次窗口类中写一个设置本类中主窗口成员对象的方法,然后传递主窗口对象即可,相当于只写两个槽函数就ok了,但在编译的时候一直提示:does not name a type。

P:我遇到的是第二种,a和b的头文件中分别调用了对方的头文件,把其中一个引用移到cpp中即可

 

Qt定时器(QTimer)的几种使用方法

https://wenku.baidu.com/view/d1e71f1b0a12a21614791711cc7931b765ce7bf9.html

 

 

在QT函数中返回一个数组/把一个数组传参给函数

https://blog.csdn.net/weixin_35793357/article/details/117161464

 

posted on 2022-07-12 20:07  rin_riceroll  阅读(94)  评论(0编辑  收藏  举报