[Solved]Qt5 build shows all dimensions as zeros, Qt4 is OK

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
babaroga
Posts: 180
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

[Solved]Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by babaroga »

Hello,
I am experimenting with qt4 and qt5 build of FreeCAD and having one issue with qt5 build.


Qt4 build shows dimensions OK.
Screenshot_20171107_190821.png
Screenshot_20171107_190821.png (126.8 KiB) Viewed 2168 times

But qt5 version show zeros on all dimension lines
Screenshot_20171107_190952.png
Screenshot_20171107_190952.png (101.98 KiB) Viewed 2168 times
If I make drawing in qt5 version and open it in qt4 version all dimensions are visible (normal). :shock:
Is it only me?

My Qt4 build

Code: Select all

OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12559 (Git)
Build type: Unknown
Branch: master
Hash: 41deaf82dd52c9f5aa48302f2c4d30a481ba7292
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
My Qt5 build

Code: Select all

OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12555 (Git)
Build type: Unknown
Branch: master
Hash: 17663ebac01cf95cae4dfa42d597a188e27e3d27
Python version: 2.7.14
Qt version: 5.9.1
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Last edited by babaroga on Mon Nov 13, 2017 4:30 pm, edited 2 times in total.
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by wandererfan »

seems ok here:
Qt5Dim.png
Qt5Dim.png (26.04 KiB) Viewed 2116 times

Code: Select all

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12562 (Git)
Build type: debug
Branch: master
Hash: 547af2f5b215b6b7bdea368d2a06cfefda40568f
Python version: 2.7.12
Qt version: 5.5.1
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
What are your preference settings for "use Global decimals", "show Units", "alt decimals"?
User avatar
babaroga
Posts: 180
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by babaroga »

Here is screenshot of my settings menu
Screenshot_20171109_180253.png
Screenshot_20171109_180253.png (12.3 KiB) Viewed 2086 times
I will try to rebuild Pyside2 and FreeCADto see if it helps.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by triplus »

I did a quick test and i get correct dimension values on Qt 5.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by looo »

triplus wrote:I did a quick test and i get correct dimension values on Qt 5.
the same
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by wandererfan »

babaroga wrote: Thu Nov 09, 2017 5:08 pm Here is screenshot of my settings menu
Those settings work here.

But I did notice something. Your locale is set to "Locale: English/UnitedStates (en_US)", but the Font Size field in your screen grab shows "4,0" which would be something other than US practice. There have been issues in the past when the decimal separator is a comma when a dot is expected or vice versa. I'm not exactly sure how/where choice of dot/comma is specified (os?) but it would be interesting to see what happens if you can get your Font Size to read "4.0".
User avatar
babaroga
Posts: 180
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by babaroga »

There must be somethng wrong in what I am doing. :?

Different computer, same version of Ubuntu, different version of Qt5. I rebuilt Pyside2 and FreeCAD but result is the same.

I even changed locale to match "," as decimal separator, but result is the same.

Code: Select all

OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12568 (Git)
Build type: Unknown
Branch: master
Hash: 5fe7a9af712b8255bc28cc2255250c81d32f7340
Python version: 2.7.14
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Bosnian/BosniaAndHerzegowina (bs_BA)
This question is offtopic, but do you know some guide about building FreeCAD against Qt5?
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by wandererfan »

I can duplicate your results if I set my locale to "Locale: Bosnian/BosniaAndHerzegowina (bs_BA)" and separator = ",".

Code: Select all

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12562 (Git)
Build type: debug
Branch: master
Hash: 547af2f5b215b6b7bdea368d2a06cfefda40568f
Python version: 2.7.12
Qt version: 5.5.1
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Bosnian/BosniaAndHerzegowina (bs_BA)
Also with French(Canadian) and ",". But if I use bs_BA and American format numbers,
Regional_bs.png
Regional_bs.png (38.47 KiB) Viewed 1978 times
the dimensions look fine.

Don't know why yet.
User avatar
babaroga
Posts: 180
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by babaroga »

I have rebuilt Pyside2 and FreeCAD and got same behavior.

But, when I turn on "Use global decimals" in preferences and refresh page, dimension numbers are back, only with fixed number of decimal places.

Code: Select all

OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12563 (Git)
Build type: Unknown
Branch: master
Hash: def0b81784403ac787e8f044f71b04641792b89e
Python version: 2.7.14
Qt version: 5.9.1
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Note, I still have comma as decimal separator.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Qt5 build shows all dimensions as zeros, Qt4 is OK

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply