Results 1 to 2 of 2

Thread: Transform widget with the mouse

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Transform widget with the mouse

    Hello,
    I would like to be able to freely transform widgets with the mouse like it's possible to do in the Affine Transformations demo that ships with Qt. I tried to look at the code and I believe I gathered that the two red dot that are used in the demo to manipulate the widgets are contained in hoverpoints.cpp under /demo/shared. The code though has no comments and I'm having trouble to make head and tail out of it. Is there anybody kind enough to point me to some docs about those manipulators or that can give me a super quick list of steps necessary to implement them?

    Thank you in advance.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Transform widget with the mouse

    There aren't any docs for that example. Best thing to do in this case is just mucking about a bit. Removing stuff, re-enabling stuff and see what happens.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. transform() vs pos() for QGraphicsItem
    By aalexei in forum Qt Programming
    Replies: 9
    Last Post: 13th November 2012, 23:34
  2. Distance Transform on a QImage
    By Franckesh in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2010, 08:58
  3. Replies: 7
    Last Post: 14th January 2010, 08:47
  4. How to transform image like warp
    By yycking in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2009, 08:35
  5. Replies: 4
    Last Post: 3rd March 2008, 22:15

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.