[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Ruby with Qt or GTK ?

Luiz Macchi

9/27/2006 1:13:00 PM

Hi all ! I´m learning Ruby and need to develop in GUI interfaces !
What the best way ? Qt or GTK ?
I´d like to hear your opinions !
thanks a lot !



--
Posted via http://www.ruby-....

22 Answers

greg.kujawa

9/27/2006 2:37:00 PM

0

I'm sure you will get a variety of different takes. There are a few
items that are worthy of considerations, such as:

o - Do you prefer working with a lightweight or a heavyweight widget
set? In other words, some widget sets go down to the "bare metal" while
others sit atop the native OS widget set as a wrapper.

o - Are licensing terms a concern? Qt isn't totally 100% free, open
source software if you are using it for commercial purposes.

o - Do you feel more comfortable working in a more OO widget building
environment? If so then Qt seems _to me_ to be more in the spirit of OO
than does GTK. Qt is rooted in C++, where GTK is rooted in C.

o - Are you looking for GUI builder helper applications to assist you?
If so then GTK has Glade and Qt has Qt Designer. And these helper apps
have varying integration into Ruby, Python, etc. programming languages.

The first thing I would do if I were you is to browse some of the
sample Ruby source code that shows how to build basic "Hello, World!"
GUI apps using Qt and GTK. See which feels the best and fits in with
your way of thinking the best. For me, with all of the bullet points
above considered, I went with Qt. YMMV depending on your expectations
and preferences.

Luiz Macchi wrote:
> Hi all ! I´m learning Ruby and need to develop in GUI interfaces !
> What the best way ? Qt or GTK ?
> I´d like to hear your opinions !
> thanks a lot !
>
>
>
> --
> Posted via http://www.ruby-....

Vincent Fourmond

9/27/2006 3:27:00 PM

0


Hello !

gregarican wrote:
> o - Are licensing terms a concern? Qt isn't totally 100% free, open
> source software if you are using it for commercial purposes.

This is false. Qt is licensed under GPL.

Vince

Vincent Fourmond

9/27/2006 3:41:00 PM

0

Jason Roelofs wrote:
> No, Gregarican is right, Qt is not free for commercial applications but
> free (GPL'd) for non-commercial / OSS applications.

Well, let's put it this way: Qt is dual licensed, one is commercial,
one is GPL. So it *is* free/open source software. But I agree that you
can't really build commercial applications with a GPL license. I was
merely pointing out what seemed a terminology mistake.

Cheers !

Vince

Paul Lutus

9/27/2006 4:25:00 PM

0

Vincent Fourmond wrote:

> Jason Roelofs wrote:
>> No, Gregarican is right, Qt is not free for commercial applications but
>> free (GPL'd) for non-commercial / OSS applications.
>
> Well, let's put it this way: Qt is dual licensed, one is commercial,
> one is GPL. So it *is* free/open source software. But I agree that you
> can't really build commercial applications with a GPL license. I was
> merely pointing out what seemed a terminology mistake.

I read this earlier and wondered about it. Can a company really release
software under the GPL, but place restrictions on its use like "no
commercial applications"? Do they have that right? I thought the entire
point of GPL was to make the source available to anyone, for any purpose,
and the recipients would have the same rights and obligations as the
originator (like publishing their own source).

And I could certainly be wrong. I pay much more attention to programming
issues than legal ones.

Also, AFAICS it isn't true that you can't create commercial applications
using GPL code. You just have to trust that people won't steal your work.
Sometimes this is a legitimate placing of trust, sometimes not.

--
Paul Lutus
http://www.ara...

ZeD

9/27/2006 5:11:00 PM

0

Paul Lutus wrote:

> I read this earlier and wondered about it. Can a company really release
> software under the GPL, but place restrictions on its use like "no
> commercial applications"?

no, infact Qt *don't* make such restriction.


qt are dual licensed: GPL XOR a-NON-GPL-one (don't remember the name)

if you use qt in GPL, by license, your code must be GPL'd

if you use qt in non-GPL-license, you must pay (don't remember how much)


--
Under construction

Tom Pollard

9/27/2006 6:53:00 PM

0


On Sep 27, 2006, at 12:25 PM, Paul Lutus wrote:
>> Well, let's put it this way: Qt is dual licensed, one is
>> commercial,
>> one is GPL. So it *is* free/open source software.
>
> I read this earlier and wondered about it. Can a company really
> release
> software under the GPL, but place restrictions on its use like "no
> commercial applications"? Do they have that right? I thought the
> entire
> point of GPL was to make the source available to anyone, for any
> purpose,
> and the recipients would have the same rights and obligations as the
> originator (like publishing their own source).

Someone using your software under the GPL does not have the right to
use it for any purpose.

Releasing your software under the GPL does not impose any further
obligations on you.

As the author (or, copyright holder) of a piece of software, you can
choose to release it under different licenses to different people.
Choosing to release your software to someone under the GPL in no way
restricts your right to release it under a more limited license to
someone else, or to stop releasing later versions under the GPL at
all. The GPL just restricts what someone using your software can
legally do with it. It's still your software.

(Waiting for someone to correct my overly broad assertions....)

TomP

Amos King

9/27/2006 7:05:00 PM

0

On 9/27/06, Tom Pollard <tomp@earthlink.net> wrote:
>
> On Sep 27, 2006, at 12:25 PM, Paul Lutus wrote:
> >> Well, let's put it this way: Qt is dual licensed, one is
> >> commercial,
> >> one is GPL. So it *is* free/open source software.
> >
> > I read this earlier and wondered about it. Can a company really
> > release
> > software under the GPL, but place restrictions on its use like "no
> > commercial applications"? Do they have that right? I thought the
> > entire
> > point of GPL was to make the source available to anyone, for any
> > purpose,
> > and the recipients would have the same rights and obligations as the
> > originator (like publishing their own source).
>
> Someone using your software under the GPL does not have the right to
> use it for any purpose.
>
> Releasing your software under the GPL does not impose any further
> obligations on you.
>
> As the author (or, copyright holder) of a piece of software, you can
> choose to release it under different licenses to different people.
> Choosing to release your software to someone under the GPL in no way
> restricts your right to release it under a more limited license to
> someone else, or to stop releasing later versions under the GPL at
> all. The GPL just restricts what someone using your software can
> legally do with it. It's still your software.
>
> (Waiting for someone to correct my overly broad assertions....)
>
> TomP
>
>


I think Tom is entirely correct. I took an Intellectual Property Law
for Computer Science class and that is the same conclusion the
instructor(a patent lawyer and comp sci.) came to.

Although QT has gone a little further. The libraries that are used
under the commercial license are slightly different. Really what
makes your product compiled with QT different is the libraries used to
compile(commercial or GPL). You can develop under the free version as
long as it never leaves your development enviroment in that fashion.
This includes demos of the software. Everything beyond the
development phase must be done with the commercial versions of the
libraries.

I had first hand experience with this. A friend wanted to develop on
MAC, but wanted to deploy on Windows. I helped him do a lot of
calling and research with this. After talking to a lawyer and the
people at TrollTech, we found that as long as we didn't compile the
production versions on the MAC and as long as we didn't use the
non-production versions to demo to potential buyers we had not
violated any Licensing.

Sorry about the tangent, but I thought it might help.

--
Amos King
USPS
Programmer/Analyst
St. Louis, MO

Paul Lutus

9/27/2006 7:18:00 PM

0

ZeD wrote:

> Paul Lutus wrote:
>
>> I read this earlier and wondered about it. Can a company really release
>> software under the GPL, but place restrictions on its use like "no
>> commercial applications"?
>
> no, infact Qt *don't* make such restriction.
>
>
> qt are dual licensed: GPL XOR a-NON-GPL-one (don't remember the name)
>
> if you use qt in GPL, by license, your code must be GPL'd
>
> if you use qt in non-GPL-license, you must pay (don't remember how much)

Okay, that makes more sense. An earlier poster implied that they (Trolltech)
could prevent the release of a commercial product using the GPL code base,
regardless of how it was done:

> Qt isn't totally 100% free, open
> source software if you are using it for commercial purposes.

The was the source of my inquiry. I don't think this is correct. Trolltech
may offer a different code base, not GPL, that you can license from them,
but I don't think they can restrict the GPL code base to noncommercial
uses, as long as the recipient follows the GPL rules also.

Again, I could be totally wrong.

--
Paul Lutus
http://www.ara...

Eero Saynatkari

9/27/2006 7:38:00 PM

0

On 2006.09.28 01:25, Paul Lutus wrote:
> Vincent Fourmond wrote:
>
> > Jason Roelofs wrote:
> >> No, Gregarican is right, Qt is not free for commercial applications but
> >> free (GPL'd) for non-commercial / OSS applications.
> >
> > Well, let's put it this way: Qt is dual licensed, one is commercial,
> > one is GPL. So it *is* free/open source software. But I agree that you
> > can't really build commercial applications with a GPL license. I was
> > merely pointing out what seemed a terminology mistake.
>
> I read this earlier and wondered about it. Can a company really release
> software under the GPL, but place restrictions on its use like "no
> commercial applications"? Do they have that right? I thought the entire
> point of GPL was to make the source available to anyone, for any purpose,
> and the recipients would have the same rights and obligations as the
> originator (like publishing their own source).

This is going OT but it has to do with copyright law and licencing.
They have a right to licence the code however they please--and the
licence is actually two-part:

1. If you have a commercial application, you must use licence A
2. If it is not commercial, you may use licence B

So even though B may allow commercial applications by itself, the
licensee has already agreed to not use it commercially because that
is the only way they can use licence B.

> And I could certainly be wrong. I pay much more attention to programming
> issues than legal ones.
>
> Also, AFAICS it isn't true that you can't create commercial applications
> using GPL code. You just have to trust that people won't steal your work.
> Sometimes this is a legitimate placing of trust, sometimes not.

You can create commercial applications with GPL, you just must
make the source available.

jmg3000

9/27/2006 8:00:00 PM

0

On 9/27/06, Tom Pollard <tomp@earthlink.net> wrote:
>
> Someone using your software under the GPL does not have the right to
> use it for any purpose.

then:
> [snip] The GPL just restricts what someone using your software can
> legally do with it. It's still your software.

That sounds incorrect. You, the user, can use GPL'd software for
whatever you like. For example, you may build proprietary software
with gcc if you like.

The GPL has to do with distribution -- it talks about the rules you
need to follow if you want to *distribute* GPL'd software. It has
nothing to do with what you *use* it for.

You can download some piece of GPL'd software, modify it to your
heart's content, and then keep the code secret if you like. If you're
a company, you can use your modified copy in-house and never release
your changes to the public. However, if you *do* release your changes
(say, by distributing them to one of your customers), then the GPL
kicks-in and says you must supply the source also.

If you use Qt to build some cool GUI program, your program is not
automatically GPL'd, but it is, however "a work based on" Qt; aka, a
"derivative work" (since your program links to Qt). Now, if you then
begin to sell or otherwise distribute or publish your program,
TrollTech (the copyright holder of Qt) says (via the GPL) that you
must at that point provide it under the same terms as Qt itself (the
GPL).

As Tom points out, the copyright holder may, at any time, re-license
their code as they see fit. If version 1.2.3 is GPL, they can
re-release that version (or release later versions) under some other
license But if a user downloaded v1.2.3 when it was GPL'd, then I
think that particular snapshot is forevermore GPL'd.

Anyhow, I believe this is the main reason the bigger players prefer
GTK+ (which is LGPL'd) to Qt (which some argue is superior to GTK+).

As a general point of interest here, note that Ruby itself is
currently dual-licensed (GPL (no version given) and Matz's own terms
(very similar to the artistic license)).

---John