Results 1 to 15 of 15

Thread: Sorry another problem. Mouse Buttons.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Sorry another problem. Mouse Buttons.

    Probably because you are letting the buttons go to trigger the event Try keeping the right button pressed while releasing the left one (after causing LMB to start the drag).

  2. #2
    Join Date
    Feb 2006
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sorry another problem. Mouse Buttons.

    Aha, that works. Ta very much.

    Bit counter intuitive, but it's just to demonstrate a presentation idea about trees so it's never going to be really used.

    Also if you happen to know where to find the Fructherman-Reingold algorithm or Kamada-Kawai anywhere let me know! I can only find vague descriptions of the algorithms and I need something to space out the different nodes properly.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Sorry another problem. Mouse Buttons.

    Quote Originally Posted by Zephro
    Aha, that works. Ta very much.

    Bit counter intuitive, but it's just to demonstrate a presentation idea about trees so it's never going to be really used.
    You might want to use "drop actions" instead. There are three such actions -- copy, move and link. You can use them for whatever you want (with copy being the default and two others being triggered by holding ctrl or alt). It might prove simpler.

  4. #4
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sorry another problem. Mouse Buttons.

    Quote Originally Posted by Zephro
    Also if you happen to know where to find the Fructherman-Reingold algorithm or Kamada-Kawai anywhere let me know! I can only find vague descriptions of the algorithms and I need something to space out the different nodes properly.
    They are available in the boost library. But prepare for a template ride:
    http://www.boost.org/libs/graph/doc/
    I already tried them and did not manage to parameterize them correctly so my results where somehow useless. Do you know some good documentation for these algorithms?

  5. #5
    Join Date
    Feb 2006
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sorry another problem. Mouse Buttons.

    No idea, I just want a simple description, but detailed enough, so I can implement it myself rather than dealing with templates.

    Especially as my data structures I'm working on probably won't work very well. ¬_¬
    Last edited by Zephro; 24th February 2006 at 16:10.

Similar Threads

  1. Changing mouse grabbing behavior?
    By FlyingSaucrDude in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 01:04
  2. Replies: 7
    Last Post: 20th November 2007, 12:15
  3. Replies: 2
    Last Post: 24th July 2006, 18:36
  4. setCanvas blocks mouse movement on QtCanvasView
    By YuriyRusinov in forum Qt Programming
    Replies: 8
    Last Post: 20th April 2006, 07:38
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.