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. Disabling mouse event in QGraphicsView?
Forum Updated to NodeBB v4.3 + New Features

Disabling mouse event in QGraphicsView?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicsviewmouseeventdisable
2 Posts 2 Posters 748 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.
  • L Offline
    L Offline
    lansing
    wrote on last edited by
    #1

    Hi I have a Qtextedit and a subclass qgraphicsview, I want the graphicsview to be enabled only when the textedit was selected, and disable it the rest of the time. How do I do this?

    jsulmJ 1 Reply Last reply
    0
    • L lansing

      Hi I have a Qtextedit and a subclass qgraphicsview, I want the graphicsview to be enabled only when the textedit was selected, and disable it the rest of the time. How do I do this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @lansing https://doc.qt.io/qt-5/qwidget.html#enabled-prop
      https://doc.qt.io/qt-5/qgraphicsview.html#focusInEvent

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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