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. Changing caret color in a QGraphicsTextItem
Forum Updated to NodeBB v4.3 + New Features

Changing caret color in a QGraphicsTextItem

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    Zoox
    wrote on last edited by
    #1

    Hi All.
    I am trying, in a QGraphicsTextItem, changing the color of the blinking caret cursor (|).
    I seems no easy... Any ideas or suggestions?
    Many thanks.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      twicave
      wrote on last edited by
      #2

      I don't know if QGraphicsTextItem have MouseIn and MouseOut event.If not, View must have such event. you can overload these virtual functions.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zoox
        wrote on last edited by
        #3

        I'm sorry, but I don't understand your reply, I think we are talking about different things.
        I'm asking about the flashing cursor in the text, not the mouse cursor.

        1 Reply Last reply
        0

        • Login

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