QT5.7.1 cannot load websites built on react.js

I am using QT5.7.1 webkit for displaying Web Page developed in React.js (React version 18.3.1 and Node version 22.0.0) on connected HMI through linuxfb. But Getting blank white page.

Below is my simple code

#include 
#include 
#include 
#include 

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

    // Create the main window
    QMainWindow mainWindow;
    mainWindow.setGeometry(0, 0, 1280, 800);  // Set position and size

    // Add a web view
    QWebView* webView = new QWebView(&mainWindow);
    webView->setGeometry(0, 0, 1280, 800);
    webView->load(QUrl("http://localhost:3000/react"));  // Load the URL
    mainWindow.show();  // Show the main window
    return app.exec();
}

Setting below ENV’s:

export QT_QPA_PLATFORM=linuxfb
export LD_LIBRARY_PATH=/usr/local/qt5.7.1/lib
export QT_PLUGIN_PATH=/usr/local/qt5.7.1/plugins
export QTDIR=/usr/local/qt5.7.1

Below is platform Details:

Debian 11
ARMv7 32-bit

If any help would be appreciated.

Read more here: Source link