1.使QScrollArea的背景透明
所以,最后的解决办法是2步,按顺序来:
1:scrollArea->setStyleSheet("QScrollArea {background-color:transparent;}")
2:scrollArea->viewport()->setStyleSheet("background-color:transparent;");
https://www.cnblogs.com/falqs/p/3805003.html
2.
qDebug() << QString().split(",");//("")
qDebug() << QString("").split(",");//
qDebug() << (QString() == "");//true
qDebug() << ("" == QString());//true
qDebug() << (QString("") == "");//true
qDebug() << QString("").count();//0
qDebug() << QString().count();//0
本以为会是0,结果是1,这个还真是不好用啊
3.smtp发送附件名乱码
this->file = file;
this->cType = "application/octet-stream";
this->cName = QFileInfo(*file).fileName();
this->cEncoding = Base64;
this->cCharset = "utf-8";