# Force wxRuby/wxWidgets to Qt libs?

**URL:** <https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148>\
**Category:** wxRuby\
**Created:** [November 15, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148 "2010-11-15T18:19:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 15, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148/1 "2010-11-15T18:19:14Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi there,

Being annoyed by the libpixman bug wxRuby has I wonder wheather I could  
just make wxRuby use the Qt libs instead of the GTK ones. I already have  
them installed on my Ubuntu machine, as I’m using applications like K3b  
which clearly come from KDE and therefore use the Qt library.

So here’s my question: Is there an easy way to make wxRuby/wxWidgets use  
the KDE/Qt libraries instead of the GNOME/GTK ones from a normal Ubuntu  
session? Maybe just by setting an appropriate environment variable such  
as  
$ WX\_WIDGETS\_LIB=Qt ruby my\_gui.rb  
?

Valete,  
Marvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.10 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQEcBAEBAgAGBQJM4WkbAAoJEGrS0YjAWTKVaaoIAJ25AMxWzFzjZdi6YU/S+Vvr  
V5MZimJB/1Bwl0Sne+9DItQOeNn6vkfA9g7A3zlgKiUnFl+/47R/xuen4bW0VK2d  
ZLkFjmR5gNOfzP/rrR0nLWpmzrgJgKZyHBuRch7GxJmaT20n+pYQgj5oFEyto7UE  
PI72KjYdFucUkennhemp0r8NgTGSbQDsXZsqOe+6N1W6UTHBK2yqLJL/0dlpykKN  
q4FQ5Nnj/xxXYrazCXUOiTGLLDSWjSc0u23p+/yGxiEEVFq2WMx30IA96J/KM7pn  
H9gC7y7tkOfXgFHbS6hrZm7el+9406ozbkW6q0W8LulgqAbduGa7kNNSyEF2RYI=  
=QXJX  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![quintus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/49beb7/32.png) [@quintus](https://www.ruby-forum.com/u/quintus)\
**Post date:** [November 16, 2010, 1:41pm UTC](https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148/2 "2010-11-16T13:41:03Z")

</div>

Hi

On 15/11/2010 17:09, Quintus wrote:

> Being annoyed by the libpixman bug wxRuby has I wonder wheather I could  
> just make wxRuby use the Qt libs instead of the GTK ones. I already have  
> them installed on my Ubuntu machine, as I’m using applications like K3b  
> which clearly come from KDE and therefore use the Qt library.
> 
> So here’s my question: Is there an easy way to make wxRuby/wxWidgets use  
> the KDE/Qt libraries instead of the GNOME/GTK ones from a normal Ubuntu  
> session? Maybe just by setting an appropriate environment variable such as  
> $ WX\_WIDGETS\_LIB=Qt ruby my\_gui.rb

No, I’m afraid not. The QT port of wxWidgets is largely unmaintained.  
Also, the port of wxRuby to each platform/lib requires special work, and  
there isn’t any support in the wxRuby codebase for building against QT.

Why not just use QT/Ruby? It is different but has a similar range of  
features to wxRuby.

alex

---

<div class="post-metadata">

**Author:** ![quintus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/49beb7/32.png) [@quintus](https://www.ruby-forum.com/u/quintus)\
**Post date:** [November 16, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148/3 "2010-11-16T16:46:56Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Am 16.11.2010 13:32, schrieb Alex F.:

> Why not just use QT/Ruby? It is different but has a similar range of  
> features to wxRuby.

I already thought about that, but I have so much code that is already  
written for wxRuby… I don’t want to rewrite all that. Additionally, Qt  
doesn’t look native on other platforms than those using KDE, which is a  
must-have for many of my applications (at least Ubuntu and Windows).

Vale,  
Marvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.10 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQEcBAEBAgAGBQJM4qAzAAoJEGrS0YjAWTKVaDEH/RUF6u027NTEdZnkT18MWYrw  
k1nXpsXkXFjvTgducyUY8Zap2JjLX4oKgSHI2xB8EvZBSNZ8MyFHL3/lJc5H2Cm8  
g54h7Tmq1+dev5wunR6C31ZvZHEDnx/8oJq3ttodCUu403Uebxk3lADzhtj8BOIO  
5Np5xT5ZPFLu5Dgx7SgSlaxEg8eKOLOwHrGLdp7UMd6hAYWb1GFxfgT1S8B5ZYI1  
5e/+PdP5B9awT89psFgu75PaUlTmsYZiJAdAy+QFzvmpPe0LFmOexkvlcKDNdwz2  
dLys/LOA+HK7lZ8ljBBYFsMdkZOdwhUI9Or6CQAh4UFV/x3/0GrqNhmtCRN0tVA=  
=+s9t  
-----END PGP SIGNATURE-----
