Difference between revisions of "ECE497 Notes on Qt"

From eLinux.org
Jump to: navigation, search
m (QWT)
(Useful Links)
Line 6: Line 6:
  
 
* The [http://qt.nokia.com/ Qt site]
 
* The [http://qt.nokia.com/ Qt site]
* [http://treyweaver.blogspot.com/2010/10/setting-up-qt-development-environment.html Setting Up Qt Development Environment for BeagleBoard-xM] has some nice instructions on getting QT going on the Beagle.  It's set up for using Qt embedded.  This writes directly to the framebuffer and doesn't need (and interferes with) X windows.  I'm trying the following configure to make it work with the X11 version.
+
* It looks like the best way to get going is use bitbake.  I'm trying
 
<pre>
 
<pre>
./configure -opensource -confirm-license -prefix /opt/qt-arm -no-qt3support -x11 -little-endian -xplatform qws/linux-DM3730-g++ -qtlibinfix E
+
$ source ~/.oe/environment-2008
 +
$ bitbake qt4-x11-free-gles
 
</pre>
 
</pre>
 +
 
* [http://doc.trolltech.com/4.6/index.html This] looks like a nice reference.
 
* [http://doc.trolltech.com/4.6/index.html This] looks like a nice reference.
 
* [http://labs.qt.nokia.com/2009/11/20/building-qt-to-make-use-of-the-beagle-boards-sgx-gpu/ Building Qt to make use of the Beagle board’s SGX GPU]
 
* [http://labs.qt.nokia.com/2009/11/20/building-qt-to-make-use-of-the-beagle-boards-sgx-gpu/ Building Qt to make use of the Beagle board’s SGX GPU]
 
* [http://processors.wiki.ti.com/index.php/Building_Qt Building Qt] from TI's site
 
* [http://processors.wiki.ti.com/index.php/Building_Qt Building Qt] from TI's site
 
* [http://qt.nokia.com/products/platform/qt-for-embedded-linux/ Embedded Linux Qt]
 
* [http://qt.nokia.com/products/platform/qt-for-embedded-linux/ Embedded Linux Qt]
 +
* If you want recompile everything: [http://treyweaver.blogspot.com/2010/10/setting-up-qt-development-environment.html Setting Up Qt Development Environment for BeagleBoard-xM] has some nice instructions on getting QT going on the Beagle.  It's set up for using Qt embedded.  This writes directly to the framebuffer and doesn't need (and interferes with) X windows. 
 +
<pre>
 +
./configure -opensource -confirm-license -prefix /opt/qt-arm -no-qt3support -x11 -little-endian -xplatform qws/linux-DM3730-g++ -qtlibinfix E
 +
</pre>
  
 
I'm working through [http://doc.trolltech.com/qtcreator-2.2/creator-qml-application.html this] example. I can't change '''mousearea1''' to '''MouseArea''' to match the figure.  I think something is missing in the instructions.
 
I'm working through [http://doc.trolltech.com/qtcreator-2.2/creator-qml-application.html this] example. I can't change '''mousearea1''' to '''MouseArea''' to match the figure.  I think something is missing in the instructions.

Revision as of 19:53, 27 June 2011


Here are some notes on using Qt on the Beagle.

Useful Links

  • The Qt site
  • It looks like the best way to get going is use bitbake. I'm trying
$ source ~/.oe/environment-2008
$ bitbake qt4-x11-free-gles
./configure -opensource -confirm-license -prefix /opt/qt-arm -no-qt3support -x11 -little-endian -xplatform qws/linux-DM3730-g++ -qtlibinfix E

I'm working through this example. I can't change mousearea1 to MouseArea to match the figure. I think something is missing in the instructions.

The Transitions section has some details missing:


   transitions: [
        Transition {
            from: "*"; to: "State1"
            NumberAnimation {
                properties: "x,y";
                duration: 1000
            }
        }
    ]

QWT

QWT is short for Qt Widgets for Technical Applications. It is a collection of widgets and support classes for creating technical applications such as those created using, for example, LabView or Test Point.

Here is some info on QWT. I think it might be able to plot data as it comes in.

I'm trying to fix the include path with:

export CPLUS_INCLUDE_PATH=/usr/include/qt4/Qt

Installs

Here's what I've installed on the Beagle

opkg install qt4-demos
opkg install linuxtag-ics
opkg install qt4-examples
opkr install qt4-x11-free qt4-x11-free-doc qt4-x11-free-dev