示例代码
void PlanetSystem::initSystem()
{
// PlanetNode (公转半径,公转速度,自身半径,自转速度,颜色)
rootPlanet = new PlanetNode(0, 0.0f, 40, 1.5f, QColor(255, 0, 0));
PlanetNode *p0 = new PlanetNode(100, 1.5f, 15, 1.5f, QColor(255, 255, 0));
rootPlanet->subPlanet.push_back(p0);
PlanetNode *p1 = new PlanetNode(160, 0.5f, 25, 1.5f, QColor(0, 255, 0));
rootPlanet->subPlanet.push_back(p1);
PlanetNode *p1_1 = new PlanetNode(50, 1.0f, 15, 1.5f, QColor(0, 0, 255));
p1->subPlanet.push_back(p1_1);
PlanetNode *p3 = new PlanetNode(260, 0.2f, 20, 1.5f, QColor(0, 255, 255));
标签:PlanetNode,控件,p1,QT,1.5,QColor,绘图,new,255
From: https://blog.csdn.net/qq_30220519/article/details/142185992