Important: Please read the Qt Code of Conduct -

Qt5.2 Raspberry, how to switch framebuffer ?

  • Hi,
    I have installed 320x240 TFT screen on my RPI. The screen configured as /dev/fb1.
    By running
    FRAMEBUFFER=/dev/fb0 startx
    FRAMEBUFFER=/dev/fb1 startx
    I can get X-Window on HDMI screen or 320x240 TFT screen.
    Qt5.2 application is running on HDMI screen only.
    I tried with no success -
    ./myapp -display Linuxfb:/dev/fb1:enable=1
    ./myapp -display directfb:/dev/fb1:2

    How to switch Qt5.2 application to /dev/fb1 ?
    Please help.

  • ./myapp -platform linuxfb:fb=/dev/fb1

  • thank you. It works.

Log in to reply