Results 1 to 2 of 2

Thread: Graphicsview and Graphicsscence

  1. #1
    Join Date
    Mar 2010
    Posts
    63
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Graphicsview and Graphicsscence

    Hi,
    I want to draw some item in scene coordinate system and some in view coordinate system.
    item in scene coordiante works fine.But item in view coordiante need to adjust every time and transformation not applied uniformly in view.(scene is consider as real world coordinate ,view has widget coodrniate in which some item to be added ,but currently all items added in scence only and all transform applied to view.)
    Can u suggest me how to deal with such problem.

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

    Default Re: Graphicsview and Graphicsscence

    If you want to draw an "item" in view coordinates then I'm assuming the "item" is not part of the scene, thus it is not a real item at all. Subclass QGraphicsView and reimplement its paintEvent() to draw the things you want in widget coordinates.
    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. MVC Example for SQL to GraphicsView ?
    By otternase in forum Qt Programming
    Replies: 3
    Last Post: 3rd June 2010, 05:44
  2. Drawing in GraphicsView
    By er.soodneha in forum Newbie
    Replies: 1
    Last Post: 26th April 2010, 00:00
  3. windowIcon in GraphicsView
    By gogodream in forum Qt Programming
    Replies: 3
    Last Post: 8th February 2010, 02:11
  4. Graphicsview??
    By Screeze in forum Newbie
    Replies: 2
    Last Post: 5th July 2009, 17:01
  5. QT GraphicsView Help
    By mistertoony in forum Qt Programming
    Replies: 15
    Last Post: 15th February 2007, 04:17

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.