lihakimpale
Posts: 80
Joined: Tue Jul 22, 2014 4:12 pm

Graphical user interface development

Mon Aug 11, 2014 5:08 pm

I need to do graphical user interface for my C code but I am new to GUI development so I don't know how to start.

I have red that Qt might be the best solutions for GUI development. I am developing the C code with Eclipse from my laptop so some Eclipse plugin might be good way to go.

If I am correct there isn't anymore Qt plugin for Eclipse? Can I do the GUI with the normal Qt developer tool and then just add the C code there and run it on my Pi. Does it compile to one executable so that I can run it on my Raspberry Pi like I am doing now. Hope someone can help me to get started.

rfrazier
Posts: 60
Joined: Fri Jul 25, 2014 5:14 am

Re: Graphical user interface development

Mon Aug 11, 2014 8:29 pm

Hi Lihakimpale,

I can't answer your question. But, you might look in this thread

http://www.raspberrypi.org/forums/viewt ... 34&t=83554

at this post

http://www.raspberrypi.org/forums/viewt ... 40#p595140

for posts by Heater. He mentions QT GUI development for C++. You could also send him a private message if you like.

Sincerely,

Ron
(PS - If you email me and don't get a quick response, you might want to send again after a couple of weeks. I don't always see new email messages quickly.)
Ron's Tech Rant Blog: techstarship.com - Blog RSS: techstarship.com/feed/
Ron Frazier

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: Graphical user interface development

Tue Aug 12, 2014 10:09 am

Hello,

There is a Qt4 GUI development system available for the Pi.
sudo apt-get install qtcreator.
You might want to look here, to set it up.
http://www.raspberrypi.org/forums/viewt ... 31&t=43545
I don't know if the 'Eclipse' plugin will run on the Pi.
QtCreator can bet set up, in such a way as to allow you to write code (C or C++ or a combination of the two),
compile, debug and run your code from within the Qt GUI running on the Pi.
There are a whole bunch of Qt4 modules available.
Qt5 is available for the Pi, I've never used it, so can't offer any advice.

Regards

lihakimpale
Posts: 80
Joined: Tue Jul 22, 2014 4:12 pm

Re: Graphical user interface development

Tue Aug 12, 2014 12:40 pm

I decided to go with this tutorial http://qt-project.org/wiki/RaspberryPi_Beginners_guide but then I got confused about the mounting of the wheezy image. What is the point of that? Can I bypass that somehow and get it still working properly?

User avatar
PeterO
Posts: 5127
Joined: Sun Jul 22, 2012 4:14 pm

Re: Graphical user interface development

Tue Aug 12, 2014 1:05 pm

As the title says ... "Beginner’s guide to cross-compile Qt5 on RaspberryPi". That means the development is done on a desktop linux PC rather than on the PI itself. It does produce programs that run on the PI, but the compilations are done on the PC.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

lihakimpale
Posts: 80
Joined: Tue Jul 22, 2014 4:12 pm

Re: Graphical user interface development

Tue Aug 12, 2014 1:15 pm

PeterO wrote:As the title says ... "Beginner’s guide to cross-compile Qt5 on RaspberryPi". That means the development is done on a desktop linux PC rather than on the PI itself. It does produce programs that run on the PI, but the compilations are done on the PC.
PeterO
Yes I knew that. That's why I decided to go with that because I prefer to develop the code from my laptop.

User avatar
PeterO
Posts: 5127
Joined: Sun Jul 22, 2012 4:14 pm

Re: Graphical user interface development

Tue Aug 12, 2014 1:20 pm

Ok, the need to cross compile was rather well hidden in your original post ! :roll:

It would seem to be much better to use NFS to mount a shared directory fromo the PC onto the PI. That would remove the need to keep moving the SD card between the PC and the PI.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

lihakimpale
Posts: 80
Joined: Tue Jul 22, 2014 4:12 pm

Re: Graphical user interface development

Wed Aug 13, 2014 11:16 am

I am confused about what I need to transfer by nfs to Raspberry Pi

lihakimpale
Posts: 80
Joined: Tue Jul 22, 2014 4:12 pm

Re: Graphical user interface development

Wed Aug 13, 2014 11:21 am

I can't even find the .exe file of the Qt Creator so that I could start the program :D

User avatar
PeterO
Posts: 5127
Joined: Sun Jul 22, 2012 4:14 pm

Re: Graphical user interface development

Wed Aug 13, 2014 12:09 pm

lihakimpale wrote:I can't even find the .exe file of the Qt Creator so that I could start the program :D
Sorry, but I have no experience with any Windows tools.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: Graphical user interface development

Wed Aug 13, 2014 12:15 pm

Hello,

If you know its name, use Windows menu/search, accepts wildcards.

Regards

lihakimpale
Posts: 80
Joined: Tue Jul 22, 2014 4:12 pm

Re: Graphical user interface development

Wed Aug 13, 2014 12:19 pm

I'm running it on Ubuntu.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: Graphical user interface development

Wed Aug 13, 2014 12:22 pm

Hello,

sudo find -name namehere

Regards

Return to “C/C++”