[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Qtruby and Qwt

Fredrik J

1/18/2007 3:52:00 PM

I am trying to set up a "live" plotting in my Qtruby application (see
my earlier post), and it seems that the Qwt library might be what I am
looking for. As I understand it, Qtruby supports Qwt, but I can't find
much documentation about it. Is there anybody out there with a simple
example of plotting with Qwt in Ruby?

/Fredrik

4 Answers

Caleb Tennis

1/18/2007 5:51:00 PM

0

> I am trying to set up a "live" plotting in my Qtruby application (see
> my earlier post), and it seems that the Qwt library might be what I am
> looking for. As I understand it, Qtruby supports Qwt, but I can't find
> much documentation about it. Is there anybody out there with a simple
> example of plotting with Qwt in Ruby?

It's not documented greatly, unfortunately, but it should work. Your past posts
indicate you seem to be using QtRuby for Qt3. Is that right? I think that the Qwt
support in QtRuby is only for the Qt4 library version (and corresponding Qwt version
- 5.x).

Caleb



richard.j.dale@gmail.com

1/18/2007 7:26:00 PM

0


Caleb Tennis wrote:
> > I am trying to set up a "live" plotting in my Qtruby application (see
> > my earlier post), and it seems that the Qwt library might be what I am
> > looking for. As I understand it, Qtruby supports Qwt, but I can't find
> > much documentation about it. Is there anybody out there with a simple
> > example of plotting with Qwt in Ruby?
>
> It's not documented greatly, unfortunately, but it should work. Your past posts
> indicate you seem to be using QtRuby for Qt3. Is that right? I think that the Qwt
> support in QtRuby is only for the Qt4 library version (and corresponding Qwt version
> - 5.x).
No, it does work with Qt3 QtRuby too. I had some problems with parsing
Qt properties in the Qt4 version of Qwt, but I did get that one working
in the end. For both Qt3 and Qt4, you need to install the Qwt headers
into the same include directory as the Qt ones, and configure QtRuby
with '--enable-qwt=yes' to build with the qwt libs.

-- Richard

Fredrik J

1/19/2007 9:42:00 AM

0

richard.j.dale@gmail.com wrote:
> No, it does work with Qt3 QtRuby too. I had some problems with parsing
> Qt properties in the Qt4 version of Qwt, but I did get that one working
> in the end. For both Qt3 and Qt4, you need to install the Qwt headers
> into the same include directory as the Qt ones, and configure QtRuby
> with '--enable-qwt=yes' to build with the qwt libs.
>
> -- Richard

Are you sure about that? In qtruby-1.0.13 I configure with this:
../configure --with-smoke="qt" --with-qt-dir=/usr/local/qt
--enable-qwt=yes --prefix=/usr
but I cannot see that configure is doing anything about that. Anyway, I
complete the installation and try
$ irb
> require 'Qwt'
LoadError: no such file to load -- Qwt
and I guess that means it was not installed?

/Fredrik

richard.j.dale@gmail.com

1/19/2007 11:18:00 AM

0


Fredrik J wrote:
> richard.j.dale@gmail.com wrote:
> > No, it does work with Qt3 QtRuby too. I had some problems with parsing
> > Qt properties in the Qt4 version of Qwt, but I did get that one working
> > in the end. For both Qt3 and Qt4, you need to install the Qwt headers
> > into the same include directory as the Qt ones, and configure QtRuby
> > with '--enable-qwt=yes' to build with the qwt libs.
> >
> > -- Richard
>
> Are you sure about that? In qtruby-1.0.13 I configure with this:
> ./configure --with-smoke="qt" --with-qt-dir=/usr/local/qt
> --enable-qwt=yes --prefix=/usr
> but I cannot see that configure is doing anything about that. Anyway, I
> complete the installation and try
> $ irb
> > require 'Qwt'
> LoadError: no such file to load -- Qwt
> and I guess that means it was not installed?
Ah bother, Caleb was right - it looks like I never did a Qt3 version. I
remembered getting Qwt to work twice and the second one being a bit
more work. I was thinking of Qwt 4.x vs Qwt 5.x though, and I've only
ever got them working with the Qt4 version of QtRuby. Sorry about
wasting your time on that. But I don't think it would be too hard to
get Qwt working for Qt3 QtRuby though all the same.

-- Richard