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 768 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 29 Jun 2020, 23:31 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?

    J 1 Reply Last reply 30 Jun 2020, 04:49
    0
    • L lansing
      29 Jun 2020, 23:31

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 30 Jun 2020, 04:49 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

      2/2

      30 Jun 2020, 04:49

      • Login

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