Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 qt creator 的图形视图上画了一些矩形。现在我想得到一个矩形来改变它的颜色和它的已知位置。可能吗?我不想使用 for 循环来检查每个矩形的位置。有没有简单的方法?谢谢在先!
QGraphicsScene::itemAt()将返回给定位置的项目。