Comments (16)
Left or right click? Are you using a mouse, touch pad, touchscreeen?
Can you also try it in the weekly builds: https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds
from freecad.
Mouse. Neither left nor right clicking works. I'll see if I can get a weekly build going and report back shortly.
from freecad.
@maxwxyz Okay, I've built and tested whatever commit that latest weekly build you linked there is based on (a4dd600). The cube's behavior has changed in that now the cube and associated controls highlight whenever my pointer hovers over them, but still nothing up there responds in any way to any left or right mouse clicks/click+drag or anything at all. See attached video:
Screencast from 2024-04-16 11-33-00.webm I can't quite figure out why/when the cursor decides to change between a hand and an arrow. Right clicking brings up the menu as shown.
OS: Arch Linux (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36874 (Git)
Build type: Release
Branch: makepkg
Hash: a4dd600ec6d5a53a9960cd9f8693d7d307b9e359
Python 3.11.8, Qt 6.7.0, Coin 4.0.2, Vtk 9.3.0, OCC 7.7.2
Locale: English/United States (en_US)
from freecad.
I cannot reproduce on my system and never heard about this behavior. Could you try temporarily rename your user.cfg file?
from freecad.
mv ~/.config/FreeCAD/ ~/.config/FreeCAD.bak
then relaunch freecad did not impact the issue.
I've got this issue on multiple machines (desktops and laptops). Granted, these are all pretty similar setups: Arch Linux, gnome desktop environment, intel graphics, freecad from official Arch repos (and now the one test I did where I built from a4dd600)
from freecad.
Wait a sec. This is probably just a duplicate of #13303
from freecad.
@greyltc related to this one? https://gitlab.archlinux.org/archlinux/packaging/packages/freecad/-/issues/3
from freecad.
@greyltc, yes, it's a duplicate.
from freecad.
I consider this issue to be better at describing the navicube issue than the above and would advise to have this one open and close the other one instead.
@Rexbas would you have any clue why the navicube doesn't properly register mouse events when built with qt6?
from freecad.
I have no idea but I am trying to compile with qt6 right now.
from freecad.
It seems that the behavior of glReadPixels(...)
is different but I don't know why or how to fix it.
Lines 936 to 937 in eb3e83b
from freecad.
could it be related to dpi scaling?
from freecad.
Don't know if it is dpi scaling.
If I write the QtGLFramebufferObject
to a file by inserting this code:
auto img = m_PickingFramebuffer->toImage();
img.save(QString::fromStdString("test.png"));
here:
Line 930 in eb3e83b
Then with qt5 I get this:
It might be hard to see but it is the navigation cube in dark red on a black background. This image is 800x800 pixels when I set navigation cube size to 400.
But with qt6 I get this:
This is also a 800x800 image but the content of the image is clearly not right.
So I think something is wrong with QtGLFramebufferObject* m_PickingFramebuffer
. I don't know how to fix.
from freecad.
I'm currently investigating this issue, from my observations this is split in two problems. One is that there's no mouse interaction with the navigation cube, so this means that at least one of SoQt or Qt6 is the culprit. The other is that reading from the framebuffer object returns invalid data, @Rexbas from what I can check is that QOpenGLFramebufferObject
hasn't changed its semantics essentially since Qt5, so it must another thing.
from freecad.
Could be related coin3d/soqt#80.
from freecad.
I think it is one problem. The mouse interaction with the navigation cube is not working because it can't decide which face is hovered/selected in NaviCubeImplementation::pickFace
which is caused by the different behavior in the frame buffer.
from freecad.
Related Issues (20)
- TD: Clean-up class GeometryMatcher
- Wrong export in STL (export with errors) HOT 1
- Start:Asking to Which Workbench Selector to Use HOT 3
- Addon Manager Locks up FreeCAD HOT 10
- Navigation cube: mouse click events are not recognized HOT 2
- Sketcher segfaults when using the symmetry tool HOT 10
- FEM: Bug when pre-selecting geometries for some constraints
- [TreeView] Incorrect Label2 view when element is hiden HOT 3
- Sketcher: "Fit All" zoom command in edit mode always includes axis origin HOT 3
- Draft: Exception during shapes editing HOT 2
- Sketcher: "Fit selection" command in edit mode does not fit view to selection HOT 3
- [Feature Request] 3D Constraint-driven sketcher/wireframe workbench HOT 3
- TechDraw: Smart dimension doesn't support thickness annotations HOT 1
- Error on create output for helical cut on fanuc code HOT 3
- Sketcher: ConstraintEqual doesn't accept Line + Arc HOT 2
- Core: "Go to selection" not working HOT 3
- FEM: Results pipeline can't handle cases when output has a single value in the whole model
- Add Favorite Properties
- OndselSolver: Failing to compile with GCC 14
- Hatch not correctly exported to PDF HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad.