Results 1 to 8 of 8

Thread: coordinate system

  1. #1
    Join Date
    Apr 2010
    Location
    Katowice, Poland
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Thumbs up coordinate system

    Hi! I'm looking for any information about how I can write the coordinate system in QT. I'm doing some project with GSL (Gnu Scientific Library) and I want to write some points in the coordinate system, but I don't know how to do it...
    Thanks in advance for any help.

  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: coordinate system

    Would you care to elaborate what exactly you want and what exactly you don't know how to do? Some example, maybe?

  3. #3
    Join Date
    Apr 2010
    Location
    Katowice, Poland
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: coordinate system

    Thank you for reply. Yes, of course. I have to compare various methods of root finding in 2D (from GSL). And what I want to do is to show how the solution is better and better during the successive iteration. Firstly, I want to draw a point, which is the solution of the system of equations. Then, after each iteration I want to draw a point just computed. After the next iterations, the next points should be drawn nearer and nearer to the solution (point drawn in the first step). I want to draw all this things in the coordinate system (cartesian) (with x- and y-axis). The result should be something similar to gnuplot but made in QT...

  4. #4
    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: coordinate system

    Still I fail to see what the problem is Maybe you could explain what you mean by "write a coordinate system"?

  5. #5
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: coordinate system

    Maybe look at Qwt

  6. #6
    Join Date
    Apr 2010
    Location
    Katowice, Poland
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: coordinate system

    I fail to see what the problem is Maybe you could explain what you mean by "write a coordinate system"?
    I want to have drawn something like this: http://upload.wikimedia.org/wikipedi...ate-system.svg

    @Lesiok: Thank you, very interesting

  7. #7
    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: coordinate system

    I think we understand different things by the term "coordinate system" You mean you want to draw a graph/chart, right?

    Is the problem mathematical or you don't know how to draw primitives or what exactly?

    The image you link to is invalid, by the way... each axis should only have one arrow head :]

  8. #8
    Join Date
    Feb 2010
    Location
    Pennsylvania, USA
    Posts
    36
    Thanks
    9
    Thanked 3 Times in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: coordinate system

    You could make your own custom widget for this. If so, you're going to want to read about QImage and QPainter.

Similar Threads

  1. Qt Coordinate System and the Graphics View Framework
    By djurodrljaca in forum Qt Programming
    Replies: 14
    Last Post: 17th February 2012, 12:19
  2. 2D Graphics on coordinate system
    By soumya in forum Qt Programming
    Replies: 0
    Last Post: 4th November 2009, 07:27
  3. Replies: 1
    Last Post: 9th April 2009, 15:54
  4. The coordinate system
    By avis_phoenix in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2008, 13:16
  5. Replies: 22
    Last Post: 7th December 2007, 10:01

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.