Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsTextItem , how to check my QGraphicsTextItem is in editing mode currently (the cursor in blinking)
Forum Updated to NodeBB v4.3 + New Features

QGraphicsTextItem , how to check my QGraphicsTextItem is in editing mode currently (the cursor in blinking)

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 362 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DonCoderD Offline
    DonCoderD Offline
    DonCoder
    wrote on last edited by
    #1

    QGraphicsTextItem , how to check my QGraphicsTextItem is in editing mode currently (the cursor in blinking). or not ?

    JonBJ 1 Reply Last reply
    0
    • DonCoderD DonCoder

      @JonB I tried it textCursor().isNull() => its valid with editor & without active editor

      DonCoderD Offline
      DonCoderD Offline
      DonCoder
      wrote on last edited by
      #4

      @DonCoder Its resolved, When it is editing mode, children() count is 1 and the Child is qwidgettextcontrol

      1 Reply Last reply
      0
      • DonCoderD DonCoder

        QGraphicsTextItem , how to check my QGraphicsTextItem is in editing mode currently (the cursor in blinking). or not ?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #2

        @DonCoder
        Did you check whether textCursor() returns a "null" cursor, might work?

        This property represents the visible text cursor in an editable text item.

        By default, if the item's text has not been set, this property contains a null text cursor; otherwise it contains a text cursor placed at the start of the item's document.

        DonCoderD 1 Reply Last reply
        0
        • JonBJ JonB

          @DonCoder
          Did you check whether textCursor() returns a "null" cursor, might work?

          This property represents the visible text cursor in an editable text item.

          By default, if the item's text has not been set, this property contains a null text cursor; otherwise it contains a text cursor placed at the start of the item's document.

          DonCoderD Offline
          DonCoderD Offline
          DonCoder
          wrote on last edited by
          #3

          @JonB I tried it textCursor().isNull() => its valid with editor & without active editor

          DonCoderD 1 Reply Last reply
          0
          • DonCoderD DonCoder

            @JonB I tried it textCursor().isNull() => its valid with editor & without active editor

            DonCoderD Offline
            DonCoderD Offline
            DonCoder
            wrote on last edited by
            #4

            @DonCoder Its resolved, When it is editing mode, children() count is 1 and the Child is qwidgettextcontrol

            1 Reply Last reply
            0
            • DonCoderD DonCoder has marked this topic as solved on

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved