Language Selection

English French German Italian Portuguese Spanish

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

Filed under

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

ARTIK is the Tizen’s Trojan Horse to dominate the IoT ecosystem

As part of the Forum “Tizen for the Internet of Things” held on September 22 in Moscow, Samsung Electronics has presented a new family of maker boards and modules named ARTIK, in addition to the infrastructure of the operating system Tizen 3.0. Samsung ARTIK’s value proposition, as declared by Samsung, is to reinvent the prototyping process by leveraging world-class data security granted by the company as well as a wide array of tools, both hardware and software, such as the ARTIK Modules and Cloud, formerly known as SmartThings Open Cloud. Read more

today's leftovers

today's howtos

Android Leftovers

  • Google Pixel review: The best Android phone, even if it is a little pricey
    Welcome to the age of Google Hardware. Apparently tired of letting third-party Android OEMs serve as the stewards of Android handsets, Google has become a hardware company. (Again). Earlier this year Google, launched a hardware division with former Motorola President Rick Osterloh at the helm. With the high-ranking title of "Senior Vice President," Osterloh doesn't oversee a side project—his group is on even footing with Android, Search, YouTube, and Ads. The hardware group is so powerful inside Google that it was able to merge Nexus, Pixel, Chromecast, OnHub, ATAP, and Glass into a single business unit. The group's coming out party was October 4, 2016, where it announced Google Home, Google Wifi, a 4K Chromecast, the Daydream VR headset, and the pair of phones we're looking at today: the Google Pixel and Google Pixel XL. The arrival of the Pixel phones marks the apparent death of the Nexus line; Google says that it has "no plans" for future Nexus devices. With the new branding comes a change in strategy, too. The Pixel brand is about making devices that are 100 percent Google, so despite Google's position as the developer of Android, get ready for Google-designed hardware combined with exclusive Google software.
  • Hands-on with the LeEco Le Pro3: services first, Android second
    LeEco’s flagship Le Pro3 smartphone isn’t trying to compete with the Google Pixel, which puts modern Google services in front of a stock Android backdrop. After playing with the Le Pro3 at the company’s U.S. launch event in San Francisco today, I’m left feeling that it’s an easy, low-cost way to get the full experience of LeEco’s applications. There are proprietary LeEco utility tools like the browser, email, calendar, messages, notes, and phone apps, along with bloatware like Yahoo Weather, but mostly the Pro3 is a means of distribution for the LeEco apps, like Live, LeVidi, and Le. There is also a standard-issue My LeEco app for managing services like EcoPass membership. Under it all is the EUI custom user interface. If you swipe left from the home screen, you see videos that LeEco recommends you watch — not Google Now.
  • Report: Google reaches agreement with CBS for 'Unplugged' web TV service - Fox and Disney may follow