Showing posts with label Qt. Show all posts
Showing posts with label Qt. Show all posts

Saturday, July 6, 2013

Download and install FREE Qt Open Source versions, on Ubuntu 13.04.

Qt can be used under open source (LGPL v2.1) or commercial terms. If you are Enterprise and want to try Qt, visit http://qt.digia.com/Try-Qt-Now/ to TRY the commercial version. Alternatively, you can download the Open Source versions by visiting http://qt-project.org/.

Visit http://qt-project.org/, click the Download link.

Download Qt Open Source versions
Download Qt Open Source versions 

Scroll down to download the file for your system. In my case of Ubuntu 13.04, download Qt online installer for Linux 32-bit.

download Qt online installer for Linux 32-bit
download Qt online installer for Linux 32-bit
Open File Manager, browse to the download file, qt-linux-opensource-1.4.0-x86-online.run. Right click it and check allow the installer to runs as a program.

Allow the installer to runs as a program
Allow the installer to runs as a program
Open a Terminal, change to the folder of the installer. run it by enter the command:

$./qt-linux-opensource-1.4.0-x86-online.run

The extra steps is quite straightforward:









Remark:
(for Ubuntu 13.04)

If you reported with the following errors:

error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
Visit Install g++ on Ubuntu

error: cannot find -lGL.
Visit Install OpenGL library

Friday, July 5, 2013

Qt Terminal example work with Arduino

The new released Qt 5.1 come with a number of examples, Terminal is one of them. The Terminal example shows how to create a terminal for a simple serial interface by using Qt Serial Port. It shows the main features of the QSerialPort class, like configuration, I/O implementation and so forth. Also, the class QSerialPortInfo is invoked to display information about the serial ports available in the system.

We can load and run it to communication with Arduino Due board easily.

To load the terminal example:

- Click File on Qt menu, -> select Open File or Project..., browse to load the project file of Terminal example. It should be locate in /Qt/5.1.0/gcc/examples/serialport/Terminal/terminal.pro.

Build and run the example:


Code in Arduino Due:

void setup() {
  Serial.begin(9600);
}

void loop() {
  if(Serial.available() > 0){
    Serial.print('(');
    Serial.print((char)Serial.read());
    Serial.print(')');
  }
}



Qt 5.1

New Qt 5.1 is available Now: What's New in Qt 5.1

Qt 5.1 is a Modern Multi-Platform Way of Writing Applications

Qt 5.1 is the latest release of the cross-platform C++ Application and UI framework. Qt 5.1 solidifies the modern multi-platform way of writing applications with Qt 5 by adding more flesh to the bone by boosting the UI technology and performance. You can now create native Qt-based cross-platform applications all with one framework and target all the most popular operating systems on desktop, embedded and mobile.

The central UI technology of Qt, Qt Quick, takes a big step forward with a new layout support and Qt Quick Controls, a pre-built toolbox of re-usable UI controls on top of the declarative QML language.

In Qt 5.1, these controls are supported on all desktop operating systems providing native look-and-feel. In the coming months, we will introduce support for touch-based controls and mobile look-and-feel. As sugar on top, Qt 5.1 presents technology previews of the official Qt ports on Android and iOS allowing you to start your multi-platform story on mobile as well.

Qt 5 Everywhere Demo

Check out the “Qt Everywhere” demo launcher showing various features of Qt 5.1 running with the same UX on Windows, Linux, Mac, embedded Linux (i.MX 6), Windows 8 and Android - true cross-platform development with the same code.



Qt 5.1 come with a The Terminal example to show how to create a terminal for a simple serial interface by using Qt Serial Port. We can load and run it to communication with Arduino Due board easily. read: Qt Terminal example work with Arduino