Text when built with fbs in docker ubuntu 16 for dialogs is different

Heads up! You've already completed this tutorial.

mike2750 | 2020-07-20 03:52:28 UTC | #1

Noticed some issues and restructured my code and trying to do it the fbs way in docker ubuntu16 but also work in later ubuntu but when i build it in ubuntu 16 the dialogs look weird.

checked and confirmed all the same pip packages installed in the docker and the host os and code is identical Selection_999(1218)|690x311

Doing a diff of the folders shows some differences. Not sure what exactly i should do to be able to build it in ubuntu 16 and have it look right in both ubuntu 16 and higher OS's.

https://pastebin.com/jWpPRYQi

The other weird thing is when i build this in ubuntu 16 i have no GL errors when testing it in other virtual machines but when i build it in ubuntu 18 i do. So im really torn cause it seems like either way is going to have issues.

ubuntu18 built deb error when run in another ubuntu 18/20 virtual machine https://pastebin.com/G2Y7PpK9

The complete guide to packaging Python GUI applications with PyInstaller.
[[ discount.discount_pc ]]% OFF for the next [[ discount.duration ]] [[discount.description ]] with the code [[ discount.coupon_code ]]

Purchasing Power Parity

Developers in [[ country ]] get [[ discount.discount_pc ]]% OFF on all books & courses with code [[ discount.coupon_code ]]

same code when built in fbs docker ubuntu16 has no GL errors but has the jacked up formatting as noted above for some dialogs.

Wondering if anyone else has possibly seen or had this issue before?

about dialog: https://pastebin.com/ieUj4TAd

register dialog: https://pastebin.com/UaVqMNpU

And i get 0 errors when debugging is turned on when the weird formatting issue happens so not sure how one goes about diagnosing the cause.

using these packages in both docker and host os

PyQt5==5.15.0 PyQt5-sip==12.8.0 PyQt5-stubs==5.14.2.2 PyQtWebEngine==5.15.0 PyQt3D==5.15.0

to get fbs ubuntu vm docker to use newer stuff you have to modify venv-fbs/lib64/python3.6/site-packages/fbs/_defaults/requirements/ubuntu.txt

The only reason im using newer packages then the old 5.9.2 is cause the qtwebengine widgets are broken when built in docker and have missing context menu items compared to the 5.14/5.15 branches


mike2750 | 2020-07-21 16:13:56 UTC | #2

After testing more I found that even switching to 5.9.2 for ubuntu which is the default with docker the same display issues happen. So it appears to be docker OS issue and not PyQT5 version issue. Seems to be how Ubuntu 16 docker interprets the fonts in the .ui files when loaded from what I can tell so far.

So what i found to fix this was to expand the size beyond what it looks like. For some reason when compiled with ubuntu16 the dimensions and free space between elements is odd. I resized the stuff way larger then it was and made sure no overlaps of the elements even if invisible and now it looks correct.

example: before in qt designer image|630x256

After in qt designer: image|628x258

looks normal in both Ubuntu16 and Ubuntu18 after compiled in Ubuntu18 image|617x243

weird but in case anyone else encounters this hopefully this helps. :slight_smile:


Create GUI Applications with Python & Qt5 by Martin Fitzpatrick — (PyQt5 Edition) The hands-on guide to making apps with Python — Over 10,000 copies sold!

More info Get the book

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Text when built with fbs in docker ubuntu 16 for dialogs is different was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.