Author Topic: Plotting in Qtopia (or Java)?  (Read 3681 times)

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Plotting in Qtopia (or Java)?
« on: May 05, 2004, 02:31:47 pm »
Anyone have a good example of a plotting application in Qtopia?

I tried their app example that uses QPicture, but cannot get it to compile, I think it is because QT_NO_PICTURE is defined in the include file for Qtopia/include/qconfig.h

I\'m wondering if I might have to try a java example instead, any pointers?
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
Plotting in Qtopia (or Java)?
« Reply #1 on: May 06, 2004, 07:23:51 am »
There is qwt that has plot widgets and examples:
http://qwt.sourceforge.net/

Compiles with qtopia
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net

BalroG

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Plotting in Qtopia (or Java)?
« Reply #2 on: May 06, 2004, 08:02:50 am »
My word, this stuff looks amazing!!

Anybody know of a tut on how to program in qtopia? I would like to use these in programs on a Z!

Only thing is, I have no idea how to program for qtopia!
C860 on Default Sharp ROM(to change soon!)

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Plotting in Qtopia (or Java)?
« Reply #3 on: May 06, 2004, 08:12:18 am »
So you download the source can compile it into your apps and they would then work? Or would you have to distribute some sort of libs?
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

BalroG

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Plotting in Qtopia (or Java)?
« Reply #4 on: May 06, 2004, 09:01:40 am »
Hi Doc!

Hmmm, see, I don\'t even know WHAT programming language I can use to write qtopia programs(I am waiting for my C860).

I can program in PHP, Perl, Pascal, Visual Basic and can manage C++ but have never developed anything for qtopia, so i guess I need where to start exactly, i.e. HELP THE NEWBIE! :-)

Thanks!
C860 on Default Sharp ROM(to change soon!)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Plotting in Qtopia (or Java)?
« Reply #5 on: May 06, 2004, 11:38:39 am »
Hi BalroG, i suggest you check out http://doc.trolltech.com/3.3/how-to-learn-qt.html  

it seems to be grand,  along with the other two tutorials that at the end you have your own working game! If i remember the language is C++ and the structure of the tutorials seems grand.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Plotting in Qtopia (or Java)?
« Reply #6 on: May 06, 2004, 01:40:32 pm »
Okay, back to my question...any good examples of simple plotting without having to download Qwt?

Okay, BalroG, Qtopia is all C++.  You can (and I have) included C headers <stdio.h> <stdlib.h> etc... and write straight C within the program as well.  Qtopia has a \"designer\" that allows you to make a GUI xml file then when you \"Make\" it, it creates the C++ code and stubs.  Then you can add code to make the buttons do something useful.
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
Plotting in Qtopia (or Java)?
« Reply #7 on: May 07, 2004, 02:46:33 pm »
Quote
Okay, BalroG, Qtopia is all C++.


While Qt is primarily designed as a C++ library, there are bindings to other languages, such as Perl & Python.  See, for example, PyQt:
http://killefiz.de/zaurus/showdetail.php?app=178

Doc, have you considered outputting a data file then generating a plot using GnuPlot?  I have several situations where I parse data files from applications using Perl & have it generate a .png graph with GnuPlot.

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Plotting in Qtopia (or Java)?
« Reply #8 on: May 07, 2004, 03:41:45 pm »
I haven\'t had much time to work on these ideas, one idea was to plot data against some theoretical data curves to see how close they match, the other was to do \"realtime\" plotting (stripcharts), which the qwt stuff looks like it would do but I don\'t quite understand how to take advantage of the qwt routines.  I don\'t think there is an arm lib of these, so I think I\'d have to compile the source in and it\'d make my app bloat.  Java was another option, but I\'m not much of a Java head.  Just thought I\'d post this query out there and see if someone has already done Qtopia plotting.
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet