Results 1 to 2 of 2

Thread: The coordinate system

  1. #1
    Join Date
    May 2006
    Posts
    57
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default The coordinate system

    Hi, i have a problem with the coordinate system

    In the windows coordante the y-axis is this:
    |------> X
    |
    |
    v Y

    But i need (beacause the calculates needed) this coordinate system:
    ^Y
    |
    |------>X

    I can change the view with QMatrix with this instruction:
    Qt Code:
    1. QMatrix MyMatrix;
    2. MyMatrix.scale(1,-1);
    3. GraphicView->setMatrix(MyMatrix);
    To copy to clipboard, switch view to plain text mode 

    I need this for my draws in tha scene, but i need put a text in the scene, and with this action the text also is reflected, then:

    How I can change the coordinate system for my drawings and it does not to the text?

    Sorry for my bad english

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The coordinate system

    How about setting the QGraphicsItem::ItemIgnoresTransformations flag to true?

Similar Threads

  1. Qt Coordinate System and the Graphics View Framework
    By djurodrljaca in forum Qt Programming
    Replies: 14
    Last Post: 17th February 2012, 11:19
  2. Replies: 22
    Last Post: 7th December 2007, 09:01
  3. System environment variable
    By fahlen in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2007, 19:02
  4. coordinating system
    By eleanor in forum Qt Programming
    Replies: 3
    Last Post: 7th November 2007, 20:57
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.