摘要:
类型转换: 1、QString::toLocal8Bit() const , 查看原文介绍: Returns the local 8-bit representation of the string as a QByteArray. The returned byte array is undefi 阅读全文
posted @ 2020-03-05 10:46
cogitoergosum
阅读(146)
评论(0)
推荐(0)
摘要:
在public里加入 using QSettings::QSettings; // QSettings 父类名称 表示继承了父类的构造函数与析构函数子类调用父类的成员函数: 父类名称::成员函数名称 阅读全文
posted @ 2020-03-05 10:31
cogitoergosum
阅读(920)
评论(0)
推荐(1)
摘要:
1、在c++中其实是有最小权限原则的,非const对象是可以调用const成员函数的。 2、const成员函数是不能调用非const成员函数,只能通过强制或者定义mutable 3、构造与析构函数不能定义为const成员函数,构造跟析构会对对象做修改 阅读全文
posted @ 2020-03-05 10:07
cogitoergosum
阅读(1587)
评论(0)
推荐(0)

浙公网安备 33010602011771号