Search code examples
qtraspberry-piqt4qt-creatorqt-designer

QtDesigner for Raspberry Pi


I am building a UI with QT Designer. I need this UI to run on a Raspberry Pi. What do I need to do to make the UI for the Pi? Does it have to be written in a specific language like python or can I just write it in whatever and launch it on the Pi? I am new to this and would really appreciate the guidance.


Solution

  • To run qt-creator on Rpi itself. You can install it by "sudo apt-get install qt-creator"

    It will install qt-creator and qt4-base modules on rpi. After installing, you can run "qt-creator" on terminal to get started with design. You will be using drag and drop for UI design and c++ as you background code language if you use qt creator.

    However, qt creator runs very slowly on Rpi B due to limited RAM available on Rpi. (I'm not sure about rpi 2 as it is definitely more powerful)

    2nd way is to install qt4 base package on rpi and start developing qt UI application on a linux running PC (possibly a debian distro). Since raspbian is a flavor of debian, first you can test code on your pc and then use those files to build code for rpi.

    3rd way is to setup cross compiler on your host PC and compile binary for rpi once you test program successfully on native machine.

    Hope it helps.