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. Mouse Cursor changes when i hover over a QTextBrowser or QTextEdit
Forum Updated to NodeBB v4.3 + New Features

Mouse Cursor changes when i hover over a QTextBrowser or QTextEdit

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • DannyL408D Offline
    DannyL408D Offline
    DannyL408
    wrote on last edited by A Former User
    #1

    My mouse (custom cursor) changes to a normal white pointer over a QTextBrowser and the line edit cursor over QTextEdit. How do I make it so it keeps the cursor I currently have it set to when I hover over it?

    [Edit: Added code tags -- @Wieland]

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! You can use void QGuiApplication::setOverrideCursor(const QCursor &cursor) [static] to actually override the cursor for all widgets. See setOverrideCursor for more info.

      1 Reply Last reply
      1
      • DannyL408D Offline
        DannyL408D Offline
        DannyL408
        wrote on last edited by DannyL408
        #3

        i just want to disable the mosue cursor changing over things such as text browser and text edit during runtime

        I have a drag object when i drag a qpushbutton but i want the dragcursor to be what i set it to to wherever i drag on the screen until i drop

        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