Why Isn't the Touch Screen Working on My Qt Application Deployed to BeagleBone Black?

@Middleware & OS Hello guys I configured a Qt development environment to develop applications for ARM based Embedded Linux platform, I am using a Ubuntu 12.04 (64bit) host system and beaglebone black ARM hardware platform. I have created a simple hello world program with a button which I have deployed to the Embedded Linux device (BBB) but the touch screen is not working. Below is the code.
#include <QApplication>
#include <QPushButton>

int main(int argc, char** argv) {
QApplication app(argc, argv);

QPushButton btn("Hello World");
btn.show();
btn.showMaximized();

return app.exec();
}
#include <QApplication>
#include <QPushButton>

int main(int argc, char** argv) {
QApplication app(argc, argv);

QPushButton btn("Hello World");
btn.show();
btn.showMaximized();

return app.exec();
}
what might be wrong?
Solution:
@Boss lady The touch screen not working on your BeagleBone Black (BBB) could be due to several reasons. you can try troubleshooting by making sure the touchscreen drivers are properly installed on the BBB. You can check this by running:
dmesg | grep touch

dmesg | grep touch

...
Jump to solution
3 Replies
Joseph Ogbonna
Joseph Ogbonna•7mo ago
The issue may be due to: - Incorrect Qt configuration - Missing event handling for touch events - Touchscreen driver not installed/configured correctly - Qt Widgets not suitable for touchscreens (try Qt Quick instead) Check Qt documentation, driver installation, and try a simple QML app to troubleshoot.
Joseph Ogbonna
Joseph Ogbonna•7mo ago
Derek Molloy
YouTube
Beaglebone: Qt Creator for C++ ARM Embedded Linux Development
This is the second video in a set of three on Qt application development on the Beaglebone or any other embedded Linux device. The first video introduces the LCD module that I used and this video is where I set up a full toolchain for C++ Qt application development under embedded Linux (Qt for embedded devices). This toolchain allows us to cross...
Solution
Dtynin
Dtynin•7mo ago
@Boss lady The touch screen not working on your BeagleBone Black (BBB) could be due to several reasons. you can try troubleshooting by making sure the touchscreen drivers are properly installed on the BBB. You can check this by running:
dmesg | grep touch

dmesg | grep touch

if the drivers are not installed, you'll need to find and install the appropriate drivers for your touchscreen, Sometimes the touchscreen needs calibration. You can use tools like ts_calibrate to calibrate the touchscreen, make sure your Qt environment is configured to support touch events. You might need to set the appropriate Qt plugins for input devices. like 👇
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/eventX
export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/eventX

export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/eventX
export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/eventX

Replace /dev/input/eventX with the correct event device for your touchscreen. ensure that the application has the necessary permissions to access the input device. You might need to adjust the permissions:
sudo chmod 666 /dev/input/eventX

sudo chmod 666 /dev/input/eventX

then for the final stage update your libraries
Want results from more Discord servers?
Add your server