示例:
// 加载静态UI
void EditMessage::load_ui() {
this->textArea = new MsgTextEdit(this);
// 设置最大允许输入字数为100(不区分中英文字符)
this->textArea->setMaxLength(100);
this->textArea->setGeometry(0, 0, 775, 287+3);
// 设置QTextEdit默认字体大小
this->setStyleSheet("MsgTextEdit { font: 30px; background-color:transparent;border:0}");
QRect rect = QRect(991-100-103, 175-117, 176, 159);
this->sendBtn = new CTransBtn(this, rect, BTN_NORMAL, 20);
this->sendBtn->_setPicTure(QString(IMAGE_MSG_SEND_NORMAL), QString(IMAGE_MSG_SEND_HOVER), QString(IMAGE_MSG_SEND_SELECTED));
}