可以使用 update()把数据更新到 paintGL里 QObject::connect(&time, SIGNAL(timeout()), this, SLOT(timeTT())); time.start(); void mywidget::timeTT() { std::cout << ang << std::endl; ang += 0.1; update(); }