⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ew809.cpp

📁 这是一个对ARM9通用的LINUX ARM QT串口初始化设置,只要在自己的程序打开这个程序,及初始化数据结构,就可以读写出N个字节的串口数据
💻 CPP
📖 第 1 页 / 共 5 页
字号:
	showbodytime_label = new QLabel( showbodytime_frame, "showbodytime_label" );
	showbodytime_label->setGeometry( QRect( 0, 0, 50, 19 ) );
	showbodytime_label->setBackgroundColor( QColor( 255, 255, 255 ) );
	showbodytime_label->setAlignment( AlignHCenter | AlignVCenter );
	showbodytime_label->setFont( QFont( "Utopia", 20, QFont::Normal ) );
	showbodytime_label->setText( QString::number( bodytime ) );
	
	asstimedec_frame = new QFrame( work1_frame, "asstimedec_frame" );
	asstimedec_frame->setGeometry( QRect( 238, 403, 32, 32 ) );
	asstimedec_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	asstimedec_frame->setFrameShape( QFrame::NoFrame );
	asstimedec_frame->setFrameShadow( QFrame::Raised ); 
	asstimedec_frame->show();
	asstimedec_label = new QLabel( asstimedec_frame, "asstimedec_label" );
	asstimedec_label->setGeometry( QRect( 0, 0, 32, 32 ) );
	asstimedec_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyassiheaddec.png" ) );
	asstimedec_label->installEventFilter( this );
	
	asstimeadd_frame = new QFrame( work1_frame, "asstimeadd_frame" );
	asstimeadd_frame->setGeometry( QRect( 485, 403, 32, 32 ) );
	asstimeadd_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	asstimeadd_frame->setFrameShape( QFrame::NoFrame );
	asstimeadd_frame->setFrameShadow( QFrame::Raised ); 
	asstimeadd_frame->show();
	asstimeadd_label = new QLabel( asstimeadd_frame, "asstimeadd_label" );
	asstimeadd_label->setGeometry( QRect( 0, 0, 32, 32 ) );
	asstimeadd_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyassiheadadd.png" ) );
	asstimeadd_label->installEventFilter( this );
	
	showasstime_frame = new QFrame( work1_frame, "showasstime_frame" );
	showasstime_frame->setGeometry( QRect( 310, 410, 50, 19 ) );
	showasstime_frame->setBackgroundColor( QColor( 255, 255, 255 ) );
	showasstime_frame->setFrameShape( QFrame::NoFrame );
	showasstime_frame->setFrameShadow( QFrame::Raised ); 
	showasstime_frame->show();
	showasstime_label = new QLabel( showasstime_frame, "showasstime_label" );
	showasstime_label->setGeometry( QRect( 0, 0, 50, 19 ) );
	showasstime_label->setBackgroundColor( QColor( 255, 255, 255 ) );
	showasstime_label->setAlignment( AlignHCenter | AlignVCenter );
	showasstime_label->setFont( QFont( "Utopia", 20, QFont::Normal ) );
	showasstime_label->setText( QString::number( assitime ) );
	
	work1setup_frame = new QFrame( work1_frame, "work1setup_frame" );
	work1setup_frame->setGeometry( QRect( 449, 7, 77, 38 ) );
	work1setup_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	work1setup_frame->setFrameShape( QFrame::NoFrame );
	work1setup_frame->setFrameShadow( QFrame::Raised ); 
	work1setup_frame->show();
	work1setup_label = new QLabel( work1setup_frame, "work1setup_label" );
	work1setup_label->setGeometry( QRect( 0, 0, 77, 38 ) );
	work1setup_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/setup1.png" ) );
	work1setup_label->installEventFilter( this );
		
	work1next_frame = new QFrame( work1_frame, "work1next_frame" );
	work1next_frame->setGeometry( QRect( 539, 8, 77, 38 ) );
	work1next_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	work1next_frame->setFrameShape( QFrame::NoFrame );
	work1next_frame->setFrameShadow( QFrame::Raised ); 
	work1next_frame->show();
	work1next_label = new QLabel( work1next_frame, "work1next_label" );
	work1next_label->setGeometry( QRect( 0, 0, 77, 38 ) );
	work1next_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/Next.png" ) );
	work1next_label->installEventFilter( this );
	// press key for work1
	bodyheadpress_frame = new QFrame( work1_frame, "bodyheadpress_frame" );
	bodyheadpress_frame->setGeometry( QRect( 47, 113, 107, 108 ) );
	bodyheadpress_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyheadpress_frame->setFrameShape( QFrame::NoFrame );
	bodyheadpress_frame->setFrameShadow( QFrame::Raised ); 
	bodyheadpress_frame->hide();
	bodyheadpress_label = new QLabel( bodyheadpress_frame, "bodyheadpress_label" );
	bodyheadpress_label->setGeometry( QRect( 0, 0, 107, 108 ) );
	bodyheadpress_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyheadpress.png" ) );
	bodyheadpress_label->installEventFilter( this );
	
	bodyassiheadpress_frame = new QFrame( work1_frame, "bodyassiheadpress_frame" );
	bodyassiheadpress_frame->setGeometry( QRect( 43, 296, 107, 108 ) );
	bodyassiheadpress_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyassiheadpress_frame->setFrameShape( QFrame::NoFrame );
	bodyassiheadpress_frame->setFrameShadow( QFrame::Raised ); 
	bodyassiheadpress_frame->hide();
	bodyassiheadpress_label = new QLabel( bodyassiheadpress_frame, "bodyassiheadpress_label" );
	bodyassiheadpress_label->setGeometry( QRect( 0, 0, 107, 108 ) );
	bodyassiheadpress_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyassiheadpress.png" ) );
	bodyassiheadpress_label->installEventFilter( this );
	
	bodyspeed1_press_frame = new QFrame( work1_frame, "bodyspeed1_press_frame" );
	bodyspeed1_press_frame->setGeometry( QRect( 282, 112, 47, 33 ) );
	bodyspeed1_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyspeed1_press_frame->setFrameShape( QFrame::NoFrame );
	bodyspeed1_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyspeed1_press_frame->hide();
	bodyspeed1_press_label = new QLabel( bodyspeed1_press_frame, "bodyspeed1_press_label" );
	bodyspeed1_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyspeed1_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyspeed1_press.png" ) );
	
	bodyspeed2_press_frame = new QFrame( work1_frame, "bodyspeed2_press_frame" );
	bodyspeed2_press_frame->setGeometry( QRect( 354, 112, 47, 33 ) );
	bodyspeed2_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyspeed2_press_frame->setFrameShape( QFrame::NoFrame );
	bodyspeed2_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyspeed2_press_frame->hide();
	bodyspeed2_press_label = new QLabel( bodyspeed2_press_frame, "bodyspeed2_press_label" );
	bodyspeed2_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyspeed2_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyspeed2_press.png" ) );
	
	bodyspeed3_press_frame = new QFrame( work1_frame, "bodyspeed3_press_frame" );
	bodyspeed3_press_frame->setGeometry( QRect( 425, 112, 47, 33 ) );
	bodyspeed3_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyspeed3_press_frame->setFrameShape( QFrame::NoFrame );
	bodyspeed3_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyspeed3_press_frame->hide();
	bodyspeed3_press_label = new QLabel( bodyspeed3_press_frame, "bodyspeed3_press_label" );
	bodyspeed3_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyspeed3_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyspeed3_press.png" ) );
	
	bodyspeed4_press_frame = new QFrame( work1_frame, "bodyspeed4_press_frame" );
	bodyspeed4_press_frame->setGeometry( QRect( 496, 112, 47, 33 ) );
	bodyspeed4_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyspeed4_press_frame->setFrameShape( QFrame::NoFrame );
	bodyspeed4_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyspeed4_press_frame->hide();
	bodyspeed4_press_label = new QLabel( bodyspeed4_press_frame, "bodyspeed4_press_label" );
	bodyspeed4_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyspeed4_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyspeed4_press.png" ) );
	
	bodyspeed5_press_frame = new QFrame( work1_frame, "bodyspeed5_press_frame" );
	bodyspeed5_press_frame->setGeometry( QRect( 568, 112, 47, 33 ) );
	bodyspeed5_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyspeed5_press_frame->setFrameShape( QFrame::NoFrame );
	bodyspeed5_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyspeed5_press_frame->hide();
	bodyspeed5_press_label = new QLabel( bodyspeed5_press_frame, "bodyspeed5_press_label" );
	bodyspeed5_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyspeed5_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyspeed5_press.png" ) );
	
	bodyint1_press_frame = new QFrame( work1_frame, "bodyint1_press_frame" );
	bodyint1_press_frame->setGeometry( QRect( 282, 167, 47, 33 ) );
	bodyint1_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyint1_press_frame->setFrameShape( QFrame::NoFrame );
	bodyint1_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyint1_press_frame->hide();
	bodyint1_press_label = new QLabel( bodyint1_press_frame, "bodyint1_press_label" );
	bodyint1_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyint1_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyint1_press.png" ) );
	
	bodyint2_press_frame = new QFrame( work1_frame, "bodyint2_press_frame" );
	bodyint2_press_frame->setGeometry( QRect( 354, 167, 47, 33 ) );
	bodyint2_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyint2_press_frame->setFrameShape( QFrame::NoFrame );
	bodyint2_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyint2_press_frame->hide();
	bodyint2_press_label = new QLabel( bodyint2_press_frame, "bodyint2_press_label" );
	bodyint2_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyint2_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyint2_press.png" ) );
	
	bodyint3_press_frame = new QFrame( work1_frame, "bodyint3_press_frame" );
	bodyint3_press_frame->setGeometry( QRect( 425, 167, 47, 33 ) );
	bodyint3_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyint3_press_frame->setFrameShape( QFrame::NoFrame );
	bodyint3_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyint3_press_frame->hide();
	bodyint3_press_label = new QLabel( bodyint3_press_frame, "bodyint3_press_label" );
	bodyint3_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyint3_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyint3_press.png" ) );
	
	bodyint4_press_frame = new QFrame( work1_frame, "bodyint4_press_frame" );
	bodyint4_press_frame->setGeometry( QRect( 496, 167, 47, 33 ) );
	bodyint4_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyint4_press_frame->setFrameShape( QFrame::NoFrame );
	bodyint4_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyint4_press_frame->hide();
	bodyint4_press_label = new QLabel( bodyint4_press_frame, "bodyint4_press_label" );
	bodyint4_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyint4_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyint4_press.png" ) );
	
	bodyintoff_press_frame = new QFrame( work1_frame, "bodyintoff_press_frame" );
	bodyintoff_press_frame->setGeometry( QRect( 568, 167, 47, 33 ) );
	bodyintoff_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	bodyintoff_press_frame->setFrameShape( QFrame::NoFrame );
	bodyintoff_press_frame->setFrameShadow( QFrame::Raised ); 
	bodyintoff_press_frame->hide();
	bodyintoff_press_label = new QLabel( bodyintoff_press_frame, "bodyintoff_press_label" );
	bodyintoff_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	bodyintoff_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/bodyintoff_press.png" ) );
	
	assspeed1_press_frame = new QFrame( work1_frame, "assspeed1_press_frame" );
	assspeed1_press_frame->setGeometry( QRect( 282, 296, 47, 33 ) );
	assspeed1_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	assspeed1_press_frame->setFrameShape( QFrame::NoFrame );
	assspeed1_press_frame->setFrameShadow( QFrame::Raised ); 
	assspeed1_press_frame->hide();
	assspeed1_press_label = new QLabel( assspeed1_press_frame, "assspeed1_press_label" );
	assspeed1_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	assspeed1_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/assspeed1_press.png" ) );
	
	assspeed2_press_frame = new QFrame( work1_frame, "assspeed2_press_frame" );
	assspeed2_press_frame->setGeometry( QRect( 354, 296, 47, 33 ) );
	assspeed2_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	assspeed2_press_frame->setFrameShape( QFrame::NoFrame );
	assspeed2_press_frame->setFrameShadow( QFrame::Raised ); 
	assspeed2_press_frame->hide();
	assspeed2_press_label = new QLabel( assspeed2_press_frame, "assspeed2_press_label" );
	assspeed2_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	assspeed2_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/assspeed2_press.png" ) );
	
	assspeed3_press_frame = new QFrame( work1_frame, "assspeed3_press_frame" );
	assspeed3_press_frame->setGeometry( QRect( 425, 296, 47, 33 ) );
	assspeed3_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	assspeed3_press_frame->setFrameShape( QFrame::NoFrame );
	assspeed3_press_frame->setFrameShadow( QFrame::Raised ); 
	assspeed3_press_frame->hide();
	assspeed3_press_label = new QLabel( assspeed3_press_frame, "assspeed3_press_label" );
	assspeed3_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	assspeed3_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/assspeed3_press.png" ) );
	
	assspeed4_press_frame = new QFrame( work1_frame, "assspeed4_press_frame" );
	assspeed4_press_frame->setGeometry( QRect( 496, 296, 47, 33 ) );
	assspeed4_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	assspeed4_press_frame->setFrameShape( QFrame::NoFrame );
	assspeed4_press_frame->setFrameShadow( QFrame::Raised ); 
	assspeed4_press_frame->hide();
	assspeed4_press_label = new QLabel( assspeed4_press_frame, "assspeed4_press_label" );
	assspeed4_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	assspeed4_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/assspeed4_press.png" ) );
	
	assspeed5_press_frame = new QFrame( work1_frame, "assspeed5_press_frame" );
	assspeed5_press_frame->setGeometry( QRect( 568, 296, 47, 33 ) );
	assspeed5_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	assspeed5_press_frame->setFrameShape( QFrame::NoFrame );
	assspeed5_press_frame->setFrameShadow( QFrame::Raised ); 
	assspeed5_press_frame->hide();
	assspeed5_press_label = new QLabel( assspeed5_press_frame, "assspeed5_press_label" );
	assspeed5_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	assspeed5_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/assspeed5_press.png" ) );
	
	assint1_press_frame = new QFrame( work1_frame, "assint1_press_frame" );
	assint1_press_frame->setGeometry( QRect( 282, 350, 47, 33 ) );
	assint1_press_frame->setBackgroundColor( QColor( 230, 241, 251 ) );
	assint1_press_frame->setFrameShape( QFrame::NoFrame );
	assint1_press_frame->setFrameShadow( QFrame::Raised ); 
	assint1_press_frame->hide();
	assint1_press_label = new QLabel( assint1_press_frame, "assint1_press_label" );
	assint1_press_label->setGeometry( QRect( 0, 0, 47, 33 ) );
	assint1_press_label->setBackgroundPixmap( QPixmap::QPixmap( "/ew809/bmp/assint1_press.png" ) );

⌨️ 快捷键说明

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