QT Draw Pixmap # QT Creator # Radar

Create Pixmap 

Step 1.
Create View
create view

check the width and height

Step 2.
Calculate Diameter and Center Point


Step 3.
Create Qt Project choose widget



Step 4. 
Create RadarScene


Structure

Step 5.
prepare RadarScene.h file

use QWidget

prepare function and parameter


Step 6.
prepare RadarScene.cpp file, Calculate diameter and center point


Step 7.
when called update() will execute paintEvent


Step 8.
paint Scene use Pixmap


return Pixmap


Step 9. 
Create Timer to update View use timeout() signal


View like this


留言

熱門文章

TourCard 開通全紀錄 台胞證 支付寶

svn 刪除使者資訊 & 查看使用者帳號密碼

[ 教學 ] 如何使用 Sourcetree 對 Github 進行版本控制 #Mac OS 版本控制