serialport.cpp

来自「linux下由qt封装起来的一个串口类」· C++ 代码 · 共 21 行

CPP
21
字号
#include <qapplication.h>
#include <qpushbutton.h>
#include "qextserialport.h"


int main( int argc, char **argv )
{
    QApplication a( argc, argv );

    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );

    a.setMainWidget( &hello );
    hello.show();

	QextSerialPort b();


    return a.exec();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?