MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Post by Kunda1 »

FreeCAD-Preferences-ImportExport-Mesh_Formats.png
FreeCAD-Preferences-ImportExport-Mesh_Formats.png (77.18 KiB) Viewed 841 times
Reproduce by switching to Mesh Design WB
Preferences :arrow_forward: Import-Export :arrow_forward: Mesh Formats

OS: Manjaro Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15780 (Git) AppImage
Build type: Release
Branch: master
Hash: f94e76c1116ec3b818961ff65131b3d86fa5b95e
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
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
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Post by NormandC »

The text is not cropped for me, but the height of the field is definitely smaller than other text fields in the preferences.

FC_pref_im-exp-dae-mesh_01.png
FC_pref_im-exp-dae-mesh_01.png (7.74 KiB) Viewed 833 times
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Post by NormandC »

The problematic file is https://github.com/FreeCAD/FreeCAD/blob ... tExport.ui

It looks like this in Qt 4 Designer:
FC_DlgSettingsImportExport.ui.png
FC_DlgSettingsImportExport.ui.png (21.26 KiB) Viewed 831 times

Compare with the DAE tab:
FC_preferences-dae.ui.png
FC_preferences-dae.ui.png (42.92 KiB) Viewed 831 times

The object type is not the same. One is Gui::QuantitySpinBox (Mesh), and the other is Gui::PrefDoubleSpinBox. Height for the Mesh field is 17 and for the DAE one is 27, whatever unit it is (pixels?)

Maybe it's just a matter of graphically tweaking the element in Qt Designer? Easier said than done.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Post by GeneFC »

It seems there is never a dull moment when it comes to Qt. :lol:

Mesh UI.png
Mesh UI.png (62.88 KiB) Viewed 810 times

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15780 (Git)
Build type: Release
Branch: master
Hash: f94e76c1116ec3b818961ff65131b3d86fa5b95e
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

Gene
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Post by Kunda1 »

It seems that the text box src/Mod/Mesh/Gui/DlgSettingsImportExport.ui is the same height as src/Mod/Part/Gui/DlgSettings3DViewPart.ui but I can't seem to find where the latter is in the UI to check if it displays the same as the former. Any one know?
Attachments
MeshWB-issues.png
MeshWB-issues.png (32.67 KiB) Viewed 748 times
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
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: MeshDesign WB: Preferences > Import-Export > Mesh Formats UI issue

Post by Kunda1 »

Hey @wmayer so this looks like a Qt4/Qt5 issue. Any idea how we solve it? Also how to avoid this moving forward?
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