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. Set breakpoints for mouse events
Forum Updated to NodeBB v4.3 + New Features

Set breakpoints for mouse events

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k Views 2 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.
  • S Offline
    S Offline
    SwePtr
    wrote on last edited by
    #1

    Hi. newbie here. I am trying to debug an example to see where the code interact with mouse drag, mouse drop etcetera.
    I am using this example QTreeViewExample3

    My problem is, I don't understand hoe and where set breakpoints for the debugger where the dragaction, dropaction etcera is executed.

    /Peter

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you want to learn about the internal working you should rather take a look directly at Qt's code, it will be faster.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SwePtr
        wrote on last edited by SwePtr
        #3

        I just want to understand how the mouse interacts with the code in the example - so I can overload dropaction.

        So far - i have failed for that, looking at a lot of examples.

        My goal is to build an ap where I can hook my own actions to the mouseevents.
        My final goal is to create a treeview displayed 'memory-bank' which uses the local filesystem for saving notes, caches from webpages - etcetera.

        /Peter

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          My recommendation still applies. This example doesn't do anything special, it's using Qt's model/view classes in a pretty standard fashion.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - 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