mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
32 lines
639 B
C++
32 lines
639 B
C++
#include "mainwindow.h"
|
|
#include "ui_mainwindow.h"
|
|
|
|
#include "qqtsysteminfo.h"
|
|
|
|
MainWindow::MainWindow ( QWidget* parent ) :
|
|
QMainWindow ( parent ),
|
|
ui ( new Ui::MainWindow )
|
|
{
|
|
ui->setupUi ( this );
|
|
|
|
TCPUTable cpu;
|
|
QQtSystemInfo s;
|
|
s.getCPUInfo ( cpu );
|
|
s.getCPUInfo ( cpu );
|
|
pline() << cpu.mNum;
|
|
QListIterator<TCPUInfo> itor ( cpu.mList );
|
|
while ( itor.hasNext() )
|
|
{
|
|
const TCPUInfo& c = itor.next();
|
|
pline() << c.mCoreNum;
|
|
}
|
|
TMemTable mem;
|
|
s.getMEMInfo ( mem );
|
|
pline() << mem.mNum;
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
delete ui;
|
|
}
|