# Ruby extension for qt

**URL:** <https://www.ruby-forum.com/t/ruby-extension-for-qt/142772>\
**Category:** Ruby\
**Created:** [July 11, 2008, 8:51am UTC](https://www.ruby-forum.com/t/ruby-extension-for-qt/142772 "2008-07-11T08:51:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [July 11, 2008, 8:51am UTC](https://www.ruby-forum.com/t/ruby-extension-for-qt/142772/1 "2008-07-11T08:51:04Z")

</div>

Dear all,

I am planning to write ‘ruby extension for accessing qt classes’( I dont  
want to use the existing “qtruby” ).  
if anyone having idea regarding this, please help me.

Thanks in advance.

regards.

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [July 11, 2008, 10:53am UTC](https://www.ruby-forum.com/t/ruby-extension-for-qt/142772/2 "2008-07-11T10:53:55Z")

</div>

On 7/11/08, dare ruby [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Dear all,
> 
> I am planning to write ‘ruby extension for accessing qt classes’( I dont  
> want to use the existing “qtruby” ).  
> if anyone having idea regarding this, please help me.

I have a question. Why write your own, and not use the existing one?  
Or why not modify (either just for yourself, or publish the changes  
back) qtruby for your purposes?

I imagine that writing an extension for all Qts classes might be a lot  
of work, and not something that’s too quickly done, so not reinventing  
the wheel might save you a lot of time and effort that could better be  
spent on something else.

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [July 11, 2008, 11:13am UTC](https://www.ruby-forum.com/t/ruby-extension-for-qt/142772/3 "2008-07-11T11:13:37Z")

</div>

Per Christian Viken wrote:

> On 7/11/08, dare ruby [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Dear all,
> > 
> > I am planning to write ‘ruby extension for accessing qt classes’( I dont  
> > want to use the existing “qtruby” ).  
> > if anyone having idea regarding this, please help me.
> 
> I have a question. Why write your own, and not use the existing one?  
> Or why not modify (either just for yourself, or publish the changes  
> back) qtruby for your purposes?
> 
> I imagine that writing an extension for all Qts classes might be a lot  
> of work, and not something that’s too quickly done, so not reinventing  
> the wheel might save you a lot of time and effort that could better be  
> spent on something else.

Dear Per Christian Viken,

many Thanks for your reply.  
now my requirement is its enough to write QPainter alone.  
I don’t know how and where to start with. ( but I have done a general  
sample from the link -  
[http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html](http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html)  
(but inwindows)

NOTE:  
I am trying this in windows.

Regards.
