QT runs BUT no graphics output (text output to command windows only)

Greetings everyone.

The program runs, but produces no graphical output.
The program does produce “cout” output.
The program does not return from the app.exec() call.
The build steps & the main.cpp file are included below.

I built a QT application using this sequence on Linux Mint:

. /usr/local/angstrom/arm/environment-setup
qmake qte-example.pro
make

Used sftp to copy the file to the beagleBone Black desktop.

Beaglebone Black “Terminal”. Angstron, with a GUI running on HDMI monitor, keyboard & moust.
//Installation of qt on the beagleBone was as follows:
// opkg update
// opkg install qt4-embedded --force-depends
// REM - I am concerned about the need for --force-depends as I do not understand why it would not work without it.

./qte-example -qws
hello world
right before return

main.cpp file:

int main(int argc, char** argv)
{
cout << “hello world” << endl;

QApplication app(argc, argv);
QPushButton helloButton(“Hello World”);
helloButton.resize(80, 20);
helloButton.show();

cout << “right before return” << endl;

return app.exec();

cout << “right after return” << endl;
}

Can someone give me a hint or link to a check list?
My guess is that the application cannot access the graphics output.
Or, maybe the libraries on Mint & BeagleBone do not match.

Thanks,
Jody

I used Beaglebone Black without LCD/touchscreen module, just with HDMI out to my Monitor.
You can try to execute
“systemctl disable gdm.service”
and
“./myQtHelloWorld -qws”,
I can see the window display to my Monitor
but the mouse hanged(can not be moved).

Jody Baudoin於 2013年8月21日星期三UTC+8下午9時53分48秒寫道:

export QWS_MOUSE_PROTO=linuxinput:/dev/input/event1
–>My mouse can be worked.

barne…@gmail.com於 2013年11月5日星期二UTC+8下午5時56分26秒寫道: