[Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
nemesis
Posts: 373
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

[Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by nemesis »

Hi,
When I create a New document, without a selected workbench, the icons are not visible until I drag the mouse over the tool bars
Sorry, the Gif is awful, but the bug is visible.

QT5 :
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10422 (Git)
Build type: Release
Branch: (detached from 1ee6dcf)
Hash: 1ee6dcf75e73ad9b63569b98a87e9d7d8b115bcc
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
OsxVersion.png
OsxVersion.png (26.78 KiB) Viewed 2779 times
BugIcon.gif
BugIcon.gif (401.69 KiB) Viewed 2779 times
Last edited by nemesis on Tue Mar 07, 2017 12:30 pm, edited 1 time in total.
User avatar
nemesis
Posts: 373
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: [Bug?][qt5 - Osx] - Icons not rendered on New doc

Post by nemesis »

other bug related to toolbars.
while changing from one WB to another, it's OK, but going back to "Start WB" there is the n-1 WB toolbar, where n is the last previous WB :
BugToolBar.gif
BugToolBar.gif (912.25 KiB) Viewed 2759 times
User avatar
nemesis
Posts: 373
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by nemesis »

blacey
Posts: 370
Joined: Tue Dec 08, 2015 11:28 pm

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by blacey »

nemesis wrote:issue #2953
Thanks! This issue will be resolved by @wmayer's (and/or @f3nix's) port to QOpenGLWidget that is underway.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by triplus »

nemesis wrote:When I create a New document, without a selected workbench, the icons are not visible until I drag the mouse over the tool bars
blacey wrote:Thanks! This issue will be resolved by @wmayer's (and/or @f3nix's) port to QOpenGLWidget that is underway.
In my opinion not. As there is no QGLWidget involved in the test @nemesis made. This issue will need a different fix. Looks to me more like some sort of toolbar related (and missing) repaint/update related issue.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by triplus »

Actually i now see there are 2 bugs reported here. If FreeCAD starts in Start workbench and no new document is created. Are the icons on the toolbar there or they need a "mouse over" to be made available? For all toolbars or just some?
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by chrisb »

triplus wrote:Actually i now see there are 2 bugs reported here. If FreeCAD starts in Start workbench and no new document is created. Are the icons on the toolbar there or they need a "mouse over" to be made available? For all toolbars or just some?
- As long as no new document is created all icons and the workbench selector are visible.
- No matter which Workbench I use as startup WB (tested with Start, Part, Part Design): Open FreeCAD, click "New document": some Icons and the WB selector are not visible. They appear on screenchange (which sure creates a redraw event).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by triplus »

I see and thanks for the explanation. In that case QGLWidget is involved and can influence the behaviour.

P.S. Best to wait for QOpenGLWidget port to be ready for testing.
blacey
Posts: 370
Joined: Tue Dec 08, 2015 11:28 pm

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by blacey »

triplus wrote:I see and thanks for the explanation. In that case QGLWidget is involved and can influence the behaviour.

P.S. Best to wait for QOpenGLWidget port to be ready for testing.
The proof is in eating the pudding. Test performed yesterday with Mateusz' QOpenGLWidget proof-of-concept branch.
QOpenGLWidget.gif
QOpenGLWidget.gif (803 KiB) Viewed 2685 times
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: [Bug#2953][Qt5 - Osx] - Icons not rendered on New doc

Post by triplus »

blacey wrote:Test performed yesterday with Mateusz' QOpenGLWidget proof-of-concept branch.
Where could one find such branch? As i wanted to test something for a long time now when it comes to QOpenGLWidget.

As for Draft Snap toolbar in PartDesign workbench. Do you by any chance use PersistentToolbars module? As there was only one issue reported about that in the past:

https://forum.freecadweb.org/viewtopic. ... 10#p135603

And as i am in the phase of upstreaming the functionality i am wondering if PersistentToolbars module influences this behaviour or not.
Post Reply