Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Qt Charting Component - Feedback request
Forum Updated to NodeBB v4.3 + New Features

Qt Charting Component - Feedback request

Scheduled Pinned Locked Moved Brainstorm
65 Posts 22 Posters 62.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZapB
    wrote on last edited by
    #30

    Just a quick note to report a little bit of progress. I now have this charting component working under the Qt Simulator target. Next step is to get it working on a real Symbian device. Here's a "screenshot":http://gallery.theharmers.co.uk/picture.php?/165/category/5 showing a simple example running under the simulator.

    Nokia Certified Qt Specialist
    Interested in hearing about Qt related work

    1 Reply Last reply
    0
    • kidproquoK Offline
      kidproquoK Offline
      kidproquo
      wrote on last edited by
      #31

      Looking really good! Can't wait to get my hands on this.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        michel
        wrote on last edited by
        #32

        hi,

        really nice plots !

        Do you use QGraphicsPathItems for the "line" plots?
        And the points symbols?

        the look and feel seems to be really well defined, yes I'd like to play with !

        great project,

        Michel

        michel

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #33

          [quote author="Michel Pacilli" date="1307918063"]hi,
          really nice plots !
          [/quote]

          Thank you.

          [quote author="Michel Pacilli" date="1307918063"]
          Do you use QGraphicsPathItems for the "line" plots?
          And the points symbols?
          [/quote]

          Almost. I have written my own custom QGraphicsItem subclasses. In this case the lines are drawn by a ZSplinePathItem and the points are drawn by ZPointItem. Both these classes inherit from another class of mine called ZTransformedPlotItem which allows the subclasses to easily perform transformations between the natural plot coordinate system and the usual QGraphicsView parent item coordinate system. The idea being that by replacing the coordinate system in use you can change the plot type ie switch to a polar coordinate system.

          The ZSplinePathItem uses a QPainterPath internally.

          [quote author="Michel Pacilli" date="1307918063"]
          the look and feel seems to be really well defined, yes I'd like to play with !

          great project,

          Michel[/quote]

          Thank you again. I have a little more work left to do before I will make a first release but I am slowly getting there. Things left to do include:

          • Contour plots (these are almost done)
          • Bar/column charts
          • More style abstractions for easier customisation
          • Peformance optimisations
          • Lots more testing ;-)

          I'll post back here as I make progress.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            ZapB
            wrote on last edited by
            #34

            Woohoo! I've just managed to get the basic plot example (shown above running in the simulator) to run natively on Symbian^3. This feels like a major step for me and it shows that we can now relatively easily create applications containing charts on desktop, embedded and mobile targets. :D

            The only changes I made compared to the same example built for desktop was to make the font size a little smaller to make better use of the available space and to call QWidget::showFullScreen() rather than QWidget::show() on the QGraphicsView. I'll try to factor the font size adjustments into the library. The choice between show() and showFullScreen() is down to the application writer.

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zester
              wrote on last edited by
              #35

              Looks amazing can't wait to try it out :)

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                ZapB
                wrote on last edited by
                #36

                Thanks Zester. Not too long now hopefully.

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #37

                  "This question":http://developer.qt.nokia.com/forums/viewthread/6950/ was split off as a separate topic.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    rafy
                    wrote on last edited by
                    #38

                    Can't wait to give it a try! Great work.
                    Any idea when we shall have the chance to play with it?

                    1 Reply Last reply
                    0
                    • Z Offline
                      Z Offline
                      ZapB
                      wrote on last edited by
                      #39

                      Thx rafy. A few months I expect. I am working on the last couple of features for version 1.0 then I need to do lots of code tidy up and bug fixing ;-) As always my time is limited though.

                      Nokia Certified Qt Specialist
                      Interested in hearing about Qt related work

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Chuck Gao
                        wrote on last edited by
                        #40

                        Great work, Sean, i do really like your Charting Component :D

                        Chuck

                        1 Reply Last reply
                        0
                        • Z Offline
                          Z Offline
                          ZapB
                          wrote on last edited by
                          #41

                          I now have the basics of contour plots working too. At the moment it just uses the Henry Ford colour scheme though so still work to do on making them look blingtastic ;-)

                          Nokia Certified Qt Specialist
                          Interested in hearing about Qt related work

                          1 Reply Last reply
                          0
                          • E Offline
                            E Offline
                            emiddelkoop
                            wrote on last edited by
                            #42

                            Hey Sean,

                            Impressive work!

                            Charttypes that I miss in your list are the financial stock charts like bar charts (open, high, low, close) and candlestick charts. I know that many developers are looking for something like that. I am using qwt for that purpose but it does not support these types either.

                            It would be great to have these as well.

                            Kind regards,
                            Eric

                            1 Reply Last reply
                            0
                            • Z Offline
                              Z Offline
                              ZapB
                              wrote on last edited by
                              #43

                              Hi Eric, I have financial stock charts on my todo list but probably not for version 1.0. The good news is they should be very simple to add in.

                              Nokia Certified Qt Specialist
                              Interested in hearing about Qt related work

                              1 Reply Last reply
                              0
                              • E Offline
                                E Offline
                                emiddelkoop
                                wrote on last edited by
                                #44

                                Ok good. Can't wait for your first release.

                                1 Reply Last reply
                                0
                                • V Offline
                                  V Offline
                                  Victor
                                  wrote on last edited by
                                  #45

                                  Sean,

                                  Bump.

                                  How can I use your widget from within QML?
                                  Can I draw xy science plots using data from a C++ class (say a std::vector) ?
                                  In my app, the data may arrive any time, so how can I notify the plot widget to draw the new data?
                                  Is there an example ?

                                  Thank you for the great work. It seems what a lot of people have been waiting for!

                                  1 Reply Last reply
                                  0
                                  • R Offline
                                    R Offline
                                    rafy
                                    wrote on last edited by
                                    #46

                                    How is it going on with version 1.0? Can't wait to play with it.
                                    Raph

                                    1 Reply Last reply
                                    0
                                    • Z Offline
                                      Z Offline
                                      ZapB
                                      wrote on last edited by
                                      #47

                                      Hey Guys,

                                      sorry for the delays on this. I'm in the middle of changing jobs and things are very hectic still at my existing job. I hope to get version 1.0 out very soon now.

                                      Victor: I am playing around with an idea on how to integrate this into QML 1. As for QML 2 I am not sure what is the best route to go down as yet so that requires some more experimentation.

                                      Nokia Certified Qt Specialist
                                      Interested in hearing about Qt related work

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        andre
                                        wrote on last edited by
                                        #48

                                        Just wondering... will this project clash with the product portfolio of your new employer?

                                        1 Reply Last reply
                                        0
                                        • Z Offline
                                          Z Offline
                                          ZapB
                                          wrote on last edited by
                                          #49

                                          Potentially yes. Something to be resolved...

                                          Nokia Certified Qt Specialist
                                          Interested in hearing about Qt related work

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved