MilloMille
Posts: 24
Joined: Tue Oct 18, 2016 3:03 pm

Tool for designing a GUI for a Touch Screen Display

Wed Oct 19, 2016 10:44 pm

Hi I pretty new to the Raspberry Pi but not to programming (mainly C). I wanted to programm a GUI for a Touch Screen Display i bought. What would be the best software (I'm running rasbian 4.4.21)? The only one I heard about this far is qt4. Is this my best option or do you have other recommendations?

Heater
Posts: 16092
Joined: Tue Jul 17, 2012 3:02 pm

Re: Tool for designing a GUI for a Touch Screen Display

Thu Oct 20, 2016 1:45 am

Yes, Qt 5.

:)
Memory in C++ is a leaky abstraction .

MilloMille
Posts: 24
Joined: Tue Oct 18, 2016 3:03 pm

Re: Tool for designing a GUI for a Touch Screen Display

Thu Oct 20, 2016 7:21 am

ok so do i just type

Code: Select all

sudo apt-get install qt5-default
and I'm done? Or should I also install some other packages like Qt Designer?
Where can I look up the recommendations for these programms?

Heater
Posts: 16092
Joined: Tue Jul 17, 2012 3:02 pm

Re: Tool for designing a GUI for a Touch Screen Display

Thu Oct 20, 2016 7:54 am

You might like to use the Qt Creator IDE. Which includes a GUI forms designer for creating widgets quickly.

$ sudo apt-get install qtcreator
Memory in C++ is a leaky abstraction .


MilloMille
Posts: 24
Joined: Tue Oct 18, 2016 3:03 pm

Re: Tool for designing a GUI for a Touch Screen Display

Wed Oct 26, 2016 1:04 pm

Ok I installed qt5-default and qtcreator but I can only create Qt Widget Applications, Qt Quick Applications and Qt Console Applications. There is no option for GUIs and the design Butoon is grey also.
I already found out that the qt5 designer is included in qttool5-dev-tools but do I only need this package? Because there is also:
qttools5-dgb - Qt 5 tools debugging symbols
qttolls5-dev - Qt 5 tools development files
They are not included in the dependancies when i look at apt-cache show qttolls5-dev-tools but they seem kind of relevant

User avatar
DavidS
Posts: 4334
Joined: Thu Dec 15, 2011 6:39 am
Location: USA
Contact: Website

Re: Tool for designing a GUI for a Touch Screen Display

Wed Oct 26, 2016 2:59 pm

Any tool that you want to layout your GUI. Just keep in mind that using a touch screen widgets should be large enough for the user to easily activate.

If you are using RISC OS then just use WinED or TemplEd. If you are using Linux the answer would depend on the GUI Toolkit you choose to use. If you are using one of the other non-unix like OS's then use what ever tool is appropriate.





I am making the assumption that you wish to design the application front end that uses an existing GUI, not design a new GUI from the ground up, as that would be a monumental task
RPi = The best ARM based RISC OS computer around
More than 95% of posts made from RISC OS on RPi 1B/1B+ computers. Most of the rest from RISC OS on RPi 2B/3B/3B+ computers

MilloMille
Posts: 24
Joined: Tue Oct 18, 2016 3:03 pm

Re: Tool for designing a GUI for a Touch Screen Display

Wed Oct 26, 2016 6:52 pm

I'm running Raspbian but I already decided to try out Qt5.

Thing is I want to design a GUI. I only have the three options when starting a new project. I thought that would be because qt5 designer wasn't installed but it is. Why can't I chose a new GUI when I start a project? And why is the disign button disabled?
Can anyone who knows this programm help me?

Return to “General programming discussion”