摘要: QGraphicsLineItem *line; scene->addItem(line = new QGraphicsLineItem(QLineF(QPointF(0, 0), QPointF(300, 300)))); //在创景窗口中画一条直线 line->setPen(QPen(Qt::DashDotDotLine)); QGraphicsItemAnimatio... 阅读全文
posted @ 2020-03-23 16:25 Werial 阅读(1261) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; //w.show(); QGraphicsScene scene; QLineF line(0,0,500,500); scene.addLine 阅读全文
posted @ 2020-03-23 14:21 Werial 阅读(1330) 评论(0) 推荐(0) 编辑