#include "pptview.h" PptView::PptView(QWidget* parent) { setMouseTracking(true); initwidget(); } PptView::~PptView() { } void PptView::initwidget() { } LogTable::LogTable(QWidget* parent) { setMouseTracking(true); initwidget(); this->setAttribute(Qt::WA_StyledBackground); this->setStyleSheet("QTabBar::tab{border:none;background-color:rgb(50,50,50);color:rgb(188, 188, 188);font:15px 'Microsoft YaHei'; min-width:97px ;min-height:26px;}" "QTabBar::tab:hover{background-color:rgb(50,50,50);color:rgb(255, 255, 255);font:16px 'Microsoft YaHei'}" "QTabBar::tab:selected{background-color:rgb(218,102,53);color:rgb(255, 255, 255);font:16px 'Microsoft YaHei'}" "QTextBrowser{background-color: rgb(56, 56, 56);}"); this->setDocumentMode(true); } LogTable::~LogTable() { if (m_plclog) { delete m_plclog; m_plclog = nullptr; } if (m_systemlog) { delete m_systemlog; m_systemlog = nullptr; } } void LogTable::initwidget() { // ��ʼ������ QWidget* m_plc = new QWidget(this); QWidget* m_system = new QWidget(this); addTab(m_plc, tr("PLC日志")); addTab(m_system, tr("软件日志")); connect(this, &LogTable::GetMsgShow, this, &LogTable::showLog); } void LogTable::showLog(const QString msg) { }