Results 1 to 1 of 1

Thread: Interactive moving of LegendItem (i.e. legend within plot)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Location
    Dresden, Germany
    Posts
    108
    Thanks
    9
    Thanked 12 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Lightbulb Interactive moving of LegendItem (i.e. legend within plot)

    Hi everyone,

    thanks to a prototype implementation from Uwe I could create a small class that enables moving of legend items via mouse drag&drop. It uses overlay widgets as the ItemEditor example in the qwt-playground.

    Take a look at the attached example code - all you need in your project is the legenditemmover.* files and creating an instance at the end of your plot setup. To test it, simply extract the archive to the playground subdir and build it alongside the other playground examples (add the subdir to playground.pro).

    Have fun,
    Andreas

    PS: Requires QwtPlotLegendItem API functions from Qwt 6.3.0 (trunk)
    Attached Files Attached Files
    Andreas

Similar Threads

  1. interactive design
    By pedro74 in forum Qt Programming
    Replies: 3
    Last Post: 10th September 2016, 19:42
  2. Interactive graphics in Qt
    By wconstan in forum Newbie
    Replies: 2
    Last Post: 15th December 2010, 21:51
  3. Replies: 0
    Last Post: 24th May 2010, 13:19
  4. Interactive QProcess
    By inktomi in forum Qt Programming
    Replies: 3
    Last Post: 8th August 2009, 19:21
  5. qsqlquery interactive?
    By lamera in forum Newbie
    Replies: 2
    Last Post: 7th September 2008, 11:09

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.