sorry if my english isn't perfect but my first language is french.
My problem is I have a cross-compiler on my window for raspbian and i finally did it, but when i execute the program on my pi the widget on window has no text and i don't have a close button. Someone gave me a code that works perfectly on his raspberry pi and i have the same result. With both codes it's the same result: just the basic window with a push button "test" written over it. So I know that my issue isn't my cross compiler but is on my pi. I tried to uninstall qt5-default package,reinstall it and upgrade all packages, but isn't effective. i tried to run linuxfb plugin with this command -./myprogram -platform linuxfb but i have the graphical bug... take a look at this picture.
my program it's on the left corner
I have also posted on Qt forum, but the reply time is very slow. it'll have been three weeks that i tried to find the issue. if anyone can provide a solution or an idea for this problem i will take any suggestions.
Thanks for reading this message.
Kuba Ober gave me a solution to solved it take a another microsd reinstall a raspbian img with qt5 and it's work!!! but what is exactly the issue i don't know but this solution work.
That's unlikely - it's easy to check: download a fresh Raspbian image to an SD card, boot it up, and try your code out.
You forgot the more likely reason: you probably have built a non-fully-functional copy of Qt. I bet it won't work on anyone's Raspberry Pi, including your friend's.
Your issue is actually the --platform plugin you are using, linuxfb won't have any Windows borders because it's writing directly to the frame buffer, not to the X server. You need to use xcb.
And don't run it as root or you are likely to loose your DISPLAY environment.