Results 1 to 3 of 3

Thread: custom QRubberBand custom shapes at selection corners

  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default custom QRubberBand custom shapes at selection corners

    Hello,
    I is it possible, with QRubberBand, to draw custom shapes (i.e. squares or circles ) on corner of the selection? ( I have already custom rubberband class and override paint)
    Or should do it differently?
    I try to make them to allow users to expand selection when clicked and moved.

    Best Regards

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: custom QRubberBand custom shapes at selection corners

    What I looking for/wanting to implement is something like this (see attachment). I already have "grey" part, but can't figure out how to implement these.
    Attached Images Attached Images

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: custom QRubberBand custom shapes at selection corners

    Have a look at the book "Foundations of Qt Development" from Johan. There is a small example for that.

Similar Threads

  1. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  2. Custom selection actions in QTreeView
    By iraytrace in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2009, 20:51
  3. Custom items selection in qgraphicsscene
    By yonnak in forum Qt Programming
    Replies: 7
    Last Post: 28th March 2009, 11:32
  4. QListWidget selection custom painting problem
    By xeento in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2008, 09:49
  5. Replies: 1
    Last Post: 5th March 2007, 20:50

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.