Widget Text not Rendering on Standalone (Static) Linux Application
-
Hello forum! I've run into an issue where text will not render on my Qt App. It renders in the menus, but not in MainWindow or any of the widgets. See picture below:
I'm using the static build of Qt 5.7.1, built as per the instructions here
I've also tried building my app from within Qt Creator itself, linking to static Qt as a Qt Version/Kit. Same results.
Am I just missing a text plugin or is this something more serious?No issue when using the dynamically linked version; everything's smooth as silk.
On a side note, when running ldd on the application, it still shows external links to libxcb, libx11 and a few others (not not qt-core). Is this normal behaviour? From what I read, libxcb is a platform abstraction library, so you would expect the user to have this installed (and in fact could break things if you provided it yourself)?
-
Please attach your screenshot to an external site and put in the link. The forum's upload feature isn't working correctly.
-
Sure!
Picture should be visible here:
http://imgur.com/EWuToLG.png -
That's a rather strange problem. Do you get any warnings in the output pane? If you link statically it might be necessary to initialize the plugins by hand, but I honestly can't think of a reason why you don't get the text rendered.
On a side note, when running ldd on the application, it still shows external links to libxcb, libx11 and a few others (not not qt-core). Is this normal behaviour?
Yes, absolutely.
From what I read, libxcb is a platform abstraction library, so you would expect the user to have this installed (and in fact could break things if you provided it yourself)?
I always advise to leave the distribution of xcb (and of Qt for that matter) to the client's distro, don't pack it up with your binaries.
-
@kshegunov said in Widget Text not Rendering on Standalone (Static) Linux Application:
Do you get any warnings in the output pane? If you link statically it might be necessary to initialize the plugins by hand, but I honestly can't think of a reason why you don't get the text rendered.
Funny you should mention warnings. I rebuilt and actually looked at them this time. Lots of garden variety stuff (uninitialised variables, etc.), but then some really interesting stuff mentioning <stdio>, <string> and then fgets's return being ignored..
Any idea what this could mean? I don't actually understand how the plugin system works. Is there something I need to do to initialise them?
~Chris