Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109100

QGraphicsSimpleTextItem says it is a QGraphicsItem when printed with qDebug()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.3.2
    • Widgets: GraphicsView
    • None
    • Linux/Wayland

    Description

      If I type

      QGraphicsSimpleTextItem *test_simple_text = new QGraphicsSimpleTextItem(QStringLiteral("test simple text")); qDebug() << "*** QGraphicsSimpleTextItem:" << test_simple_text;

      it shows

      *** QGraphicsSimpleTextItem: QGraphicsItem(0x562fda1f7250, pos=0,0)

      I would expect it to display

      ** *QGraphicsSimpleTextItem: QGraphicsSimpleTextItem(0x562fda1f7250, pos=0,0, flags=(ItemUsesExtendedStyleOption))

       

      Thats's said, it works as expected with QGraphicsTextItem.

      QGraphicsTextItem *test_text = new QGraphicsTextItem("test text"); qDebug() << "*** QGraphicsTextItem:" << test_text;

      it displays

      *** QGraphicsTextItem: QGraphicsTextItem(0x562fda57e950, pos=0,0, flags=(ItemUsesExtendedStyleOption))

      Attachments

        Activity

          People

            bibr Andreas Aardal Hanssen
            delaune Olivier Delaune
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: