Results 1 to 6 of 6

Thread: Problem about Graphics View Framework

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Nanjing, China
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12

    Default Re: Problem about Graphics View Framework

    Yeah, I plan to support layers and some processing like PS. Maybe some day later I will add CImg for editing pictures, so I choose Graphics View Framework. But it is not suitable for drawing, I think.

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

    Default Re: Problem about Graphics View Framework

    Quote Originally Posted by FinderCheng View Post
    But it is not suitable for drawing, I think.
    Not really. At least not more than plain QWidget.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2009
    Location
    Nanjing, China
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12

    Default Re: Problem about Graphics View Framework

    But I don't know how to do that. Should I override the paint event function? How can I implement rubberband? Override paint and mouseDragEvent or override dragEvent? Thanks!

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

    Default Re: Problem about Graphics View Framework

    Quote Originally Posted by FinderCheng View Post
    Should I override the paint event function?
    Yes.
    How can I implement rubberband?
    See QRubberBand, you have an example there.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Model Or View problem
    By Nefastious in forum Newbie
    Replies: 2
    Last Post: 9th October 2009, 19:44
  2. about the contextMenuEvent in graphics view framework
    By bingoking in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2009, 06:04
  3. Graphics View Queries
    By linuxdev in forum Qt Programming
    Replies: 13
    Last Post: 7th January 2009, 09:44
  4. graphics view FitInView problem
    By aamer4yu in forum Qt Programming
    Replies: 6
    Last Post: 25th January 2007, 10:24
  5. Adding Rectangular overlay on graphics view
    By forrestfsu in forum Qt Programming
    Replies: 10
    Last Post: 21st November 2006, 19:42

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.