Questions tagged [qt]

a cross-platform application framework for developing application software

Filter by
Sorted by
Tagged with
14 votes
5 answers
66k views

PyQt5 on a Raspberry Pi

I have a Raspberry Pi 3 with Raspbian installed, along with a 7" touch screen. I'm in the process of creating an application in Python to read several DS18B20 Thermocouples to monitor the temperature ...
CharlieHorse's user avatar
13 votes
1 answer
19k views

Turning 'tvservice' on and off leaves screen blank

I'm running the Qt5 application on my raspberry pi and I would like to introduce some kind of a power-saving feature. I don't use x11 or wayland, because I don't need it, but I use gles2 (OpenGL for ...
lewiatan's user avatar
  • 713
13 votes
2 answers
64k views

Qt applications don't work due to libEGL

I am developing some (simple) GUI applications for the RPi2 in Qt5. The setup: The code development is performed on a Windows laptop using Netbeans + Qt Designer and remotely built on the RPi running ...
Andrey Pro's user avatar
8 votes
2 answers
3k views

QtMultimedia on RaspBerry Pi

I've been trying to get QtMultimedia working on Raspberry Pi for a few weeks now, cross-compiling using the BakeQtPi script, yet the QtMultimedia plugin never seems to find an appropriate service to ...
Andreas Eriksson's user avatar
6 votes
3 answers
8k views

Which toolchain for Raspberry Pi 3 and Qt5

Which is the recommended toolchain to cross-compile Qt5.6 for Raspberry Pi 3? I tried official tools: https://github.com/raspberrypi/tools but it seems they don't support the architecture and flag ...
Mark's user avatar
  • 517
5 votes
2 answers
32k views

Installing Qt on Raspberry Pi 3

I'm trying to install Qt Creator to my Raspberry Pi 3 for a GUI project. However when I use the command sudo apt-get install qt5-default it gives an error saying that: E:Unable to fetch some ...
Avio's user avatar
  • 63
5 votes
1 answer
2k views

Install Qt Framework on Raspberry pi 2 B+ on Windows 10 IoT

Qt embedded system is very useful in this topic but it is not open source, it has a price for every year and it isn't cheap. Windows 10 IoT is awesome OS, with PowerShell you can start OS with a ...
massaimara98's user avatar
3 votes
3 answers
5k views

qt5 adafruit touch screen on raspberry pi moves pointer too fast

I have finally got the adafruit 7" screen working with the X11 interface (startx) and it now seems to move the mouse accurately. However, I have a qt 5.5 app I wrote which works fine with a mouse but ...
pcla's user avatar
  • 31
3 votes
1 answer
62 views

magnetic field generated by the engine alternator affects gpio value

I am working on a dashboard for a motorcycle. I created a Qt application on my raspberry pi 4 on a raspberry pi os lite. I have configured one of my GPIO as interrupt using the wiringPi library. ...
mina's user avatar
  • 357
3 votes
0 answers
632 views

QML without X11

Is it possible to run QML files without X_Desktop environment in raspbian Jessie for Raspberry Pi3? I found this tutorial: EGLFS , but I would prefer if it is possible to compile directly on RPi, ...
Shiro's user avatar
  • 41
2 votes
1 answer
9k views

ImportError: No module named 'PyQt5'

I am trying to get the script here to work on Raspberry Pi. I have tested it on Windows and Ubuntu and it works fine. But getting pyqt5 working on RPi seems to be a challenge. On Ubuntu the following ...
Lee Melbourne's user avatar
2 votes
3 answers
1k views

Qt for Raspberry 2

I saw many threads about setting up Qt on Rpi v.1. RPi 2 is using ARMv7 architecture so probably toolchain for ARMv6 won't work like described here Additionally I would like to compile from Windows, ...
Michal Majeran's user avatar
2 votes
1 answer
2k views

autostart application on raspberry pi 4 (systemd)

I am working with raspberry pi os lite on raspberry pi 4. I wanted to autostart a Qt application. I created under /etc/systemd/system a .service file named application_one.service this is what the ....
mina's user avatar
  • 357
2 votes
1 answer
3k views

Access RPi's camera stream in OpenCV C++ (Qt)

I've setup my Raspberry pi 3 B with uv4l and have access to the video stream on http://(raspberry-IP):8080/stream address. Now, I have Qt5(C++) and OpenCV installed on my main computer. How can I ...
A. Vieira's user avatar
  • 141
2 votes
2 answers
4k views

How to get qt4 runtime libraries

The latest (stretch) image has dropped all qt4 libraries and has qt5 libraries instead. But I still have A LOT of qt4 software. I have searched the web but every hit tells me how to install the qt4 ...
Oldfart's user avatar
  • 188
2 votes
1 answer
2k views

Failed to cross compile Qt 5.6 on RPi 2 (fatal error: bcm_host.h: No such file or directory)

I tried to cross compile Qt 5.6 for RPi 2 by following the tutorial RaspberryPi2EGLFS, but I got this error: qeglfsbrcmintegration.cpp:35:22: fatal error: bcm_host.h: No such file or directory #...
Hamed's user avatar
  • 21
2 votes
1 answer
7k views

Is it possible to install Qt5 on Ubuntu MATE or Raspbian with Raspberry pi 2?

First of all, I'm not sure if I should be asking this here, or on stackoverflow. But, here will be my first shot, if it's not the right place, just tell me and I'll move the question elsewhere. Ok, ...
Mauker's user avatar
  • 294
2 votes
1 answer
363 views

Unable to get Qt5 audio to work using pulseaudio on Rpi 4

I'm on Raspberry pi 4 and the OS is DietPi I configured ALSA so I could play an audio file successfully through HDMI using aplay [an audio file] Then launched the PyQt5 app but got PulseAudioService: ...
A_Kz's user avatar
  • 31
2 votes
1 answer
566 views

No audio through 3.5mm jack when using QtMultimedia on RPI4B

I am currently trying to run a PYQT5 GUI on my RPI 4B using PYQT5 and its QtMultimedia. I have 2 speakers (running through an amp) connected through the 3.5mm jack (BMC2835 headphones), and while ...
Mawten's user avatar
  • 31
2 votes
1 answer
2k views

Cross compiling Qt on windows for raspberry pi, missing xcb dependencies

I am trying to start with Qt for Raspberry Pi on a Windows Dev System. To begin with to setup the environment, I followed the below as per the official wiki page. From starting at various stages, I ...
HardCoder's user avatar
  • 131
2 votes
1 answer
7k views

Running a Qt5 application not full-screen, use VNC

The problem : I can't run my Qt5 app as a normal X window. It is always full screen. I successfully compiled Qt5 and I can deploy a simple program to the RPi : Qt Creator uploads the executable to ...
dpeng's user avatar
  • 131
2 votes
0 answers
281 views

OpenCV cross-compilation fails

I have cross-compiled Qt on my CentOS host for my Raspberry Pi and now I want to cross-compile OpenCV with the following script: CORES=4 IP=192.168.178.52 TEMP_PATH=/home/kampi/OpenCV SYSROOT_PATH=/...
Kampi's user avatar
  • 203
2 votes
0 answers
2k views

Why GLX or EGL is not enabled when running QT program?

To start with I have to say I was trying to make cross-compilation work for Ubuntu with Raspberry Pi 3+ B. I used this tutorial https://wiki.qt.io/RaspberryPi2EGLFS and QT in version 5.12.4. Tried it ...
WakeCaine's user avatar
2 votes
1 answer
61 views

Compile Qt application on Raspberry Pi and Run that application on other ARM device. Will it work?

I am compiling One Qt application on Raspberry Pi and Run it on different ARM device like Microchip or TI board without compile again. will it work??? if both the side Qt version is same.
Mehta's user avatar
  • 31
2 votes
0 answers
687 views

Qt cross compilation *QOpenGLShaderProgram: could not create shader program* error

I am using the QT Creator for my laptop (Linux LMDE 3 Cindy OS) And for Raspberry Zero Cross-compiling. I have installed the QT based of this instruction and by this setting: mkdir ~/raspi ...
Soheil Paper's user avatar
2 votes
0 answers
1k views

Latest Qt5 does not provide EGLFS during cross-compilation

Some time ago I set up a Linux host to cross-compile Qt5. I used this configure command: ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/opt/tools/arm-...
Mark's user avatar
  • 517
2 votes
0 answers
2k views

Live Camera App with Qt

I am trying to write an application using Qt that displays live video from the Pi camera. The Qt example projects "camera" (using QWidgets) and "declarative-camera" (using QML) both run without ...
BrettAustin's user avatar
2 votes
1 answer
1k views

Unable to drag and drop widgets in Qt Designer

I got a Qt 4 installation using sudo apt-get install qtcreator. I am able to get everything to compile using gcc 4.8. However, when it comes to using Qt Designer to edit the UI of a window, Qt ...
Towerism's user avatar
2 votes
1 answer
129 views

Does a binary built on pi 3 will work on pi 2?

I'm building an app on a raspberry pi 3. I'm using Qt. Will the generated binary work on raspberry pi 2? Thanks
Julien's user avatar
  • 131
1 vote
3 answers
3k views

How do I build Qt's mysql-plugin on Raspbian Buster

I try to build the MySQL plugin on a Raspbian Buster with C++ and Qt 5.12.4. Building Qt itself worked fine by following this tutorial: https://www.tal.org/tutorials/building-qt-512-raspberry-pi ...
elnacho's user avatar
  • 43
1 vote
1 answer
8k views

Install PyQt4 for Python 3.4

I need to install PyQt4 for Python 3.4. I found that when I try sudo apt-get install python3-pyqt4 I am prompted by terminal that python3.2 will be installed( which I assume will try to install ...
Main's user avatar
  • 371
1 vote
2 answers
809 views

Socketcan and Qt on raspberry pi

Is there a prebuild serialbus library for Raspberry Pi? I would to use QtCanBus in a project. Unfortunately I cannot find any reference for installing the necessary library. tried sudo apt-get ...
Alex B.'s user avatar
  • 41
1 vote
1 answer
495 views

Qt Application crashing on Raspberry Pi 3 with Adafruit 2.8" PiTfT touchscreen

I have a adafruit PiTfT 2.8" 320x240 capacitive touch display running on a raspberry pi. I cross compiled my executable under linux, where I also cross-compiled qt. If I run the enclosed example ...
maxwell's user avatar
  • 133
1 vote
1 answer
127 views

Qt Quick cross compiled application didn't show images on raspberry pi 4

I cross compiled Qt5.14.2 for my raspberry pi 4 on a raspberry pi OS lite after that I created a Qt Quick application on my Ubuntu and I integrated images in my qml file Image { id: compteur ...
mina's user avatar
  • 357
1 vote
1 answer
1k views

symbol lookup error: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent

I have cross-compiled executable file from QT 4.8.7. I am running it on a Raspberry PI (Ubuntu), with QT 4.8.7 and QT declarative module installed. When i run the executable file on my raspberry pi, i ...
Mehta's user avatar
  • 31
1 vote
1 answer
788 views

Failure to build QT5 5.12.3 on Raspberry Pi zero

Following the instructions in https://www.tal.org/tutorials/building-qt-512-raspberry-pi,: wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.tar.xz tar xf qt-...
Soheil Paper's user avatar
1 vote
1 answer
1k views

Raspberry Pi 3 B+ QMediaPlayer - unable to play sound

I'm struggling to play audio files using Qt 5.11.3 and the QMediaPayer class. There is no sound output when playing either .mp3 or .wav files. I had some success to play a wav file using QSound class. ...
Alex B.'s user avatar
  • 41
1 vote
1 answer
297 views

Qt Userland raspistill/racpicam integration - Unable to find an X11 visual which matches EGL config

I am developing simple gui app for a client on Raspberry pi running Ubuntu(Mate) 16.04 using Qt 5.5.1 and OpenCV for some face recognition (all C++) using 5MP pi camera. The framerate/CPU usage ...
sith's user avatar
  • 223
1 vote
1 answer
244 views

How to detect if camera is unplugged from CSI bus when it is running?

I am having an issue as below. I make a Qt application to show video got from the camera module. And when showing video, if the camera is unplugged from CSI bus, I must know that and show a warning ...
Shymaxtic's user avatar
1 vote
1 answer
440 views

cross compile Qt 5.7 for rpi3 : help needed

i am trying to cross compile QT 5.7 for rpi 3 and following following links for the same: https://www.ics.com/blog/configuring-qt-creator-raspberry-pi https://wiki.qt.io/RaspberryPi2EGLFS on ...
hemu's user avatar
  • 11
1 vote
2 answers
11k views

Jessie: libEGL warning: DRI2: failed to authenticate

I'm developing an application using Python 3 / PyQt5. Everything seems ship-shape until I try to run the GUI (which is partially reliant on a live graph that is backed by pyqtgraph) on my Raspberry Pi ...
bearplane's user avatar
  • 131
1 vote
1 answer
2k views

Disable default bluetooth dialog box for accept pairing in raspberry pi3

I am developing a Bluetooth application using Qt5 on Raspberry Pi3. I have implemented my own Pairing agent which will automatically accept the pairing request from the remote device. The code is ...
Mahesh Mohandasan's user avatar
1 vote
1 answer
571 views

Raspbian or Raspbian Lite for Cross Compiling Qt

I try to follow this guide https://wiki.qt.io/RaspberryPi2EGLFS for cross-compiling Qt. The instructions don't specify whether I need to use the Desktop version or whether also the lite version would ...
numberCruncher's user avatar
1 vote
1 answer
3k views

Host errors after cross-compilation of Qt 5.9.2

I've cross-compiled Qt 5.9.2 for Raspbian Stretch with the following setup: git clone -b 5.9 git://code.qt.io/qt/qt5.git cd qt5 ./init-repository ./configure -release -opengl es2 -device linux-rasp-...
Mark's user avatar
  • 517
1 vote
1 answer
702 views

Difference between executing script from terminal vs /etc/rc.local

I am booting my raspberry Pi to Terminal at the moment. I have a script that I would like to run. The script looks like this run_gui.sh: python /home/pi/1.py & /home/pi/Gui& If I SSH into ...
theAlse's user avatar
  • 111
1 vote
1 answer
991 views

mini display with OpenGL support to run Qt gui applications

I am developing a Qt gui application to run on my RPi2 board. I followed the instructions at RaspberryPI BeginnersGuide to crosscompile Qt. The requirement is to run the application on a mini (2.8" ...
roronoa zoro's user avatar
1 vote
1 answer
7k views

Touchscreen with Qt QML eglfs

The goal is to run QtQuick2 Qt5 applications on the RPI 2B with USB+HDMI resistive touchscreen (7" 800x480 AR1100 http://www.adafruit.com/products/2407). Current state Visual part is fine. Touch ...
Velkan's user avatar
  • 119
1 vote
1 answer
743 views

QML based programm on TFT

I wrote a program with QT so I could run it on my Raspberry. It's based on QML only. I made a native build of Qt 5.5 on the Raspberry, and I can qmake / make my programs. Now I have an issue : I can't ...
user3645663's user avatar
1 vote
1 answer
3k views

ArchLinux Qt eglfs

here is what I did. I updated everything to latest, than I installed Qt5 and some related packages: pacman -S gcc make qt5-base qt5-declarative qt5-imageformats qt5-multimedia qt5-quickcontrols qt5-...
adontz's user avatar
  • 111
1 vote
2 answers
142 views

Can I compile R-Pi programs (Qt) on R-Pi itself?

I want to create GUI in Qt and would like to know if I can compile and test the programs on the Pi board itself. That way, I only need to connect to R-Pi using SSH and modify code, compile and test it ...
VedVals's user avatar
  • 187