Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

What can be causing a Qt5 application to show a black window instead of normal UI on Ubuntu 24.04?

$
0
0

I have an application written for Qt5.15.2. I have Ubuntu 24.04 and a Qt 5.15.2 installed via online installer. When I run the application, I see a window with a black rectangle instead of various UI elements.

When I logged out and ran "Ubuntu in xorg" and launched the application, the window did contain some rubbish from random parts of my screen (a part of Firefox icon, some text from my terminal, etc.)

This application did work for Ubuntu 22.04. I'm pretty sure I followed the same steps when setting up my work environment in Ubuntu 24.04.

Any clues will be greatly appreciated.

Could the way in which I installed my Qt be the culprit of this failure?What is the proper way of installing Qt 5 (specifically 5.15.2) on Ubuntu 24.04?

I know that there is no qt5-default package to use "apt install". Therefore I downloaded Qt online installer and installed everything related to Qt 5.15.2. After installation I set/modified the following environment variables in ~/.bashrc:

export QTDIR=/home/dl/Qt/5.15.2/gcc_64export PATH=$QTDIR/bin:$PATHexport LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHexport PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH

Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>