Using Qt 5 to display stuff on the EV3 screen

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
broija
Posts: 12
Joined: 07 Nov 2013, 20:56
Location: France
Contact:

Using Qt 5 to display stuff on the EV3 screen

Post by broija »

Hi,

You can download source code to build a plugin that will make Qt work with the EV3 screen: https://github.com/broija/ev3linuxfb

It's surely not optimized and I will add some modifications shortly. At this point, I've only tested the raster example with a 178 x 128 window.

Open the README.md for instructions. A tutorial will be posted on my blog soon.

If you've not already read my tutorial to build Qt for the EV3: http://broija.blogspot.fr/2013/11/compi ... torms.html

Edit 2013-11-23 22:06 GMT: If you've already built Qt 5, the tutorial has been updated today because QtGui was not included during "configure" phase. If you're not interested in displaying things on the EV3 screen, there is no need to rebuild.
broija
Posts: 12
Joined: 07 Nov 2013, 20:56
Location: France
Contact:

Re: Using Qt 5 to display stuff on the EV3 screen

Post by broija »

Hi,

For some reason, the 'README.md' wasn't up to date on the repository. Sorry for that. :oops:

You can now read it for the instructions. If you have any question, do not hesitate to ask. The detailed tutorial should be available by the end of the month.

Regards,

B.
broija
Posts: 12
Joined: 07 Nov 2013, 20:56
Location: France
Contact:

Re: Using Qt 5 to display stuff on the EV3 screen

Post by broija »

Hi,

Article available here: http://broija.blogspot.fr/2013/11/run-q ... .html#more

Regards,

B.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Using Qt 5 to display stuff on the EV3 screen

Post by HaWe »

hi,
could you pls explain by a few VERY simple words what this thing is for? :shock:
(sort of if you tried to explain it to an 11 year foreign pupil speaking English from 2 years English school lessons) ;)
broija
Posts: 12
Joined: 07 Nov 2013, 20:56
Location: France
Contact:

Re: Using Qt 5 to display stuff on the EV3 screen

Post by broija »

Hi,

Qt is a C++ framework, in other words a set of libraries containing a lot of classes and functions regarding containers, smart pointers, network, threads, animation (both 2D and 3D), graphical user interfaces and many other things...

Concerning the graphic part, because that's what this topic deals with, you can use Qt to display text messages, geometric shapes, jpeg pictures, bitmaps or whatever you want on the screen. Of course, you won't be able to display 3D objects since there is no 3D acceleration available on the EV3.

Hope that helps.

Regards,

B.
broija
Posts: 12
Joined: 07 Nov 2013, 20:56
Location: France
Contact:

Re: Using Qt 5 to display stuff on the EV3 screen

Post by broija »

OK, it depends on what you're expecting from a library. If BCC's API suits all your needs, it would be stupid to waste an hour or two to install Qt on your brick and other hours to learn how to use it. But you can't compare the two libraries, they're complementary on the EV3.

BCC doesn't provide settings manager:
http://qt-project.org/doc/qt-5.0/qtcore/qsettings.html

nor network classes:
http://qt-project.org/doc/qt-5.0/qtnetw ... erver.html

and just glance at some of its graphic capabilities:
http://qt-project.org/doc/qt-5.0/qtgui/qpainter.html
http://qt-project.org/doc/qt-5.0/qtgui/qimage.html

Though Qt doesn't provide control and sensor functions for your robot.

Just because you don't see the point of using Qt doesn't mean that it is useless.

Regards,

B.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Using Qt 5 to display stuff on the EV3 screen

Post by mightor »

Hi broija,

Thanks for your hard work and contribution :)

= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests