摘要:
void WgtText::paintEvent(QPaintEvent *event) { QPainter painter(this); QString m_string("abcdefghijklmnopqrstuvwxy"); int font_size = 15; float x0 = font_size * m_string.count() * 0... 阅读全文
摘要:
效果图: 阅读全文
摘要:
参考资料: https://blog.csdn.net/qq_35488967/article/details/70802973https://blog.csdn.net/wanghualin033/article/details/78633604https://blog.csdn.net/lian 阅读全文
摘要:
参考文章: https://www.cnblogs.com/mfmdaoyou/p/6851703.html (未完待续) 阅读全文
摘要:
参考资料: https://blog.csdn.net/liang19890820/article/details/51227894 QString text("abc");QPainter painter(this);painter.setPen(QColor(0, 160, 230)); QFo 阅读全文
摘要:
参考文章:https://blog.csdn.net/yuxing55555/article/details/79752978 效果图: 阅读全文
摘要:
效果图: 阅读全文
摘要:
参考:https://www.cnblogs.com/lsgxeva/p/7821550.html效果图: void BrokenLine::paintEvent(QPaintEvent *event) { // 折线上的点 static QList points = QList() << QPointF(10, 40) << QPointF(100, 100) << QPo... 阅读全文
摘要:
QVBoxLayout *m_pvLayout = NULL; QWidget *m_pWidgetPlay = NULL; m_pvLayout = new QVBoxLayout(this); m_pvLayout->setSpacing(0); m_pvLayout->setContentsM 阅读全文
摘要:
QProcess m_Process; m_Process.setProcessChannelMode(QProcess::MergedChannels); //拼接命令行字符串 QString cmd_str(""); cmd_str += QApplication::applicationDir 阅读全文