Results 1 to 2 of 2

Thread: mapping / transforming coordinates

  1. #1
    Join Date
    Sep 2007
    Posts
    14
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default mapping / transforming coordinates

    Hi!

    I think what I want to do is simple, but I'm not very familiar with Qt. Using a QGraphicsScene/View I want to define a rectangular area to have floating point (real) coordinates so that I can do something like a drawPoint( 12.34, 56.78 ).

    If QGraphicsScene/View is not the best way to do this, please advise!

    Many thanks!


    bjh

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: mapping / transforming coordinates

    QGraphicsScene/View gives you this "from the box".
    Just go through the examples.
    Then ask if you have specific questions.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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.