摘要:
QGraphicsLineItem *line; scene->addItem(line = new QGraphicsLineItem(QLineF(QPointF(0, 0), QPointF(300, 300)))); //在创景窗口中画一条直线 line->setPen(QPen(Qt::DashDotDotLine)); QGraphicsItemAnimatio... 阅读全文
摘要:
int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; //w.show(); QGraphicsScene scene; QLineF line(0,0,500,500); scene.addLine 阅读全文