Language Selection

English French German Italian Portuguese Spanish

Cross-platform UI with Qt4 and Ruby - Mac/Linux HOWTO

Filed under
HowTos

Today I’ve spent the day working on figuring out how to make UIs using Ruby and Qt4. If you haven’t heard of it, Qt4 is an awesome UI framework written in C++. Since C++ is way too much work, some great KDE devs wrote a bindings generator for Qt4 called qt4-qtruby. While this package is fairly “linuxy”, it’s pretty easy to build it on Mac OS X too, making it possible to write GUI programs for OS X without having to delve into RubyCocoa which has too much hackiness (in my opinion), or even worse, Objective C. Furthermore, your code that you write on OS X will look great on Windows and Linux too!

Starting from scratch

First, install Ruby. If you’re using Linux, you’ll probably use the package manager to install Ruby and the Ruby development libraries! (Ubuntu will run sudo apt-get install ruby irb ruby-dev) OS X Tiger ships with Ruby by default, but you’ll want to install an updated version, via the Ruby one-click installer, then disable the old Ruby by using the following command:

more here




More in Tux Machines

SysAdmins and Kernel Developers Advance Linux Skills with LiFT

The annual Linux Foundation Training (LiFT) Scholarships provide advanced open source training to existing and aspiring IT professionals from all over the world. Twenty-seven recipients received scholarships this year – the highest number ever awarded by the Foundation. Scholarship recipients receive a Linux Foundation training course and certification exam at no cost. Read more

New Antivirus Live CD Release Is Out Now Based on 4MLinux 24.0 and ClamAV 0.99.2

Every time a new major 4MLinux release is being prepped, Antivirus Live CD gets updated with the latest GNU/Linux technologies and Open Source components that have been included in the respective 4MLinux release. As such, Antivirus Live CD 24.0-0.99.2 is based on 4MLinux 24.0 and ClamAV 0.99.2 open-source antivirus software toolkit. "Antivirus Live CD is an official 4MLinux fork including the ClamAV scanner. It's designed for users who need a lightweight live CD, which will help them to protect their computers against viruses," said Zbigniew Konojacki in the release announcement‏. "The latest version 24.0-0.99.2 is based on 4MLinux 24.0 and ClamAV 0.99.2." Read more

LibreOffice 6.0 Coming Soon to openSUSE Tumbleweed, Along with KDE Apps 17.12

A total of six snapshots have been released to the public this month, as OpenSuSE Project's Dominique Leuenberger announced this past weekend, and they brought lots of goodies, along with some of the latest GNU/Linux technologies and Open Source software components. But first, there's been a bunch of more python2->python3 conversions lately that you should know about. "For the ones that don’t know yet, the python2 -> python3 switches are especially of interest to SLE/Leap 15," said Dominique Leuenberger. "Minimizing the support surface for Python 2 in favor of Python 3 will lead to a much stronger, supportable product for the future. As Tumbleweed is the leading and trendsetting product, it is but natural that we get those changes as well." Read more

Linux Kernel 5.0 is Coming in the Summer of 2018

Linus Torvalds reveals the silly reason about why there will be a Linux Kernel 5 hopefully in the summer of 2018. He also discusses the need for new Linux Kernel maintainers. Read more