您的位置首页生活快答

qt中如何在QGraphicsScene中添加Edit控件?

qt中如何在QGraphicsScene中添加Edit控件?

的有关信息介绍如下:

qt中如何在QGraphicsScene中添加Edit控件?

QGraphicsSimpleTextItem provides a simple text label itemQGraphicsTextItem provides an advanced text browser item这两个(反正第二个肯定可以的,第一个应该只是简单的lable),生成实例设置flag为Qt::TextEditorInteraction添加到screen就好了。