Qt程序没有文本,我没有字体错误 [英] Qt program have no text and i haven't font error

查看:303
本文介绍了Qt程序没有文本,我没有字体错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果我的英语不是很完美,但是我的母语是法语。

sorry if my english isn't perfect but my first language is french.

我的问题是我的窗口上有一个针对raspbian的交叉编译器,我终于做到了,但是当我在pi上执行程序时,窗口上的小部件没有文本,并且我没有关闭按钮。有人给了我一个可以在他的树莓派上完美工作的代码,我得到了相同的结果。使用这两种代码,结果是相同的:只是在基本窗口上写有测试按钮。所以我知道我的问题不是我的交叉编译器,而是我的pi。我尝试卸载qt5-default软件包,重新安装并升级所有软件包,但没有效果。我尝试使用此命令-./myprogram -platform linuxfb运行linuxfb插件,但是我遇到了图形错误...请看这张图片。

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.

我的程序在左上角

我还发布在 Qt论坛,但是回复时间很慢。我试图找到问题已经过去了三个星期。如果有人可以为这个问题提供解决方案或想法,我会提出任何建议。

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.

感谢阅读此消息。

Kuba Ober给了我一个解决方案,解决了它需要重新安装microsd一个qt5的树莓img,它的工作!但是我不知道什么是确切的问题,但是此解决方案有效。

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.

推荐答案


我知道我的问题不是我的交叉编译器,而是我的pi

I know that my issue isn't my cross compiler but is on my pi

这不太可能-很容易检查:下载新的Raspbian映像

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.

您忘记了更可能的原因:您可能已经构建了Qt的非功能齐全的副本。我敢打赌它不能在任何人的Raspberry Pi上使用,包括您朋友的Raspberry Pi。

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.

这篇关于Qt程序没有文本,我没有字体错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆