Commit graph

4493 commits

Author SHA1 Message Date
Candice Bentéjac
52444ef0ad [GraphEditor] Edge: Set curve scale after initializing EdgeMouseArea
The curve scale of the mouse area for an edge used to be defined when
initializing the `EdgeMouseArea` for that edge. Setting it triggers a
chain of event that allow the mouse area to be active, thus correctly
detecting when it is being hovered or clicked on.

With Qt6, these events unfolded before the `EdgeMouseArea` had finished
initializing, which then caused it to not be active until the edge's
shape was modified (and the chain of events triggered again). It is now
set once the component has been created, so all the events can happen
in an environment where they are taken into account.
2024-11-07 18:13:33 +01:00
Candice Bentéjac
4933911f0b [components] Edge: Remove use of deprecated functions
QMouseEvent::x() and QMouseEvent::y() have been marked as deprecated and
should be replaced with QMouseEvent::position().x() and
QMouseEvent::position().y().
2024-11-07 18:13:32 +01:00
Candice Bentéjac
49a3fcb72f [qt6][Viewer] Viewer2D: Remove outdated sfmRequired property 2024-11-07 18:13:31 +01:00
Candice Bentéjac
8eebe5ecb9 [qt6][qml] Homepage: Improve minimum width 2024-11-07 18:13:30 +01:00
Candice Bentéjac
54b59d0c5e [qt6][qml] Push Application on the stack before loading the project
This prevents crashes when the project is done loading but
`Application` is not yet ready.
2024-11-07 18:13:29 +01:00
Candice Bentéjac
de966e38e5 [qt6][ui] AboutDialog: Display PySide's version 2024-11-07 18:13:28 +01:00
Candice Bentéjac
ec139defb7 [qt6][ImageGallery] IntrinsicDisplay: Harmonize naming of components 2024-11-07 18:13:28 +01:00
Candice Bentéjac
e97575a901 [qt6][qml] Remove QtQuick.Window imports
`QtQuick.Window` does not exist anymore with Qt6. QQuickWindow is now
directly part of the QtQuick module.
2024-11-07 18:13:27 +01:00
Candice Bentéjac
645b822e56 [qt6][GraphEditor] Fix the width for the TaskManager's list 2024-11-07 18:13:26 +01:00
Candice Bentéjac
f06c5a2663 [qt6][MaterialIcons] Fix disabled buttons' behaviour when interacted with 2024-11-07 18:13:25 +01:00
Candice Bentéjac
9fb8ea83fb [qt6][Viewer] Fix display of metadata 2024-11-07 18:13:24 +01:00
Candice Bentéjac
8007bc51e8 [qt6][GraphEditor] Set preferred size for the list of chunks 2024-11-07 18:13:23 +01:00
Candice Bentéjac
fbe72a0ad6 [qt6][GraphEditor] Correctly detect clicks on edges 2024-11-07 18:13:22 +01:00
Candice Bentéjac
66c39633b4 [qt6][Viewer3D] Use DiffuseMapMaterial for texture display
Replace `DiffuseSpecularMaterial`, which does not seem to support
correctly textures anymore, with `DiffuseMapMaterial`.
2024-11-07 18:13:21 +01:00
Candice Bentéjac
9867773953 [qt6][GraphEditor] Check for object's existence before accessing it 2024-11-07 18:13:20 +01:00
Candice Bentéjac
fb5a882074 [qt6][core] Don't store SignalInstance in dict for node computations
When converting the `StatusData` to a dictionary, only data attributes
should be stored in said dictionary. With Qt6, the `objectNameChanged`
signal, of type `SignalInstance`, is added to the dictionary. It needs
to be removed manually as it is not JSON-serializable. Otherwise,
the nodes cannot be computed anymore.
2024-11-07 18:13:19 +01:00
Candice Bentéjac
92e56673ed [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:13:19 +01:00
Candice Bentéjac
240188c0b4 [qt6][Viewer3D] Disable wireframe mode
Disable and hide the wireframe mode as the shaders need to be updated
for RHI.
2024-11-07 18:13:18 +01:00
Candice Bentéjac
77bd2a7145 [qt6][Viewer] Viewer2D: Trigger auto-fit() on correct events
The fit must be automatically triggered when the size of the image
changes. In case the image size remains the same but the orientation tag
is updated, this means that the displayed size of the image has changed
(with the orientation taken into account, the width and height might end
up being inverted), so the fit should also be triggered.
2024-11-07 18:12:59 +01:00
Candice Bentéjac
05e7d9eaee [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:09:14 +01:00
Candice Bentéjac
2b569c1fd8 [qt6][Viewer3D] Inspector3D: Set color for labels in Inspector 2024-11-07 18:09:13 +01:00
Candice Bentéjac
f6a9e5d59c [qt6][Viewer3D] Remove PointSize render state
`PointSize` is not supported by RHI.
2024-11-07 18:09:12 +01:00
Candice Bentéjac
570d88e040 [qt6] Stop enabling HighDpiScaling which is now deprecated 2024-11-07 18:09:12 +01:00
Candice Bentéjac
3ff279d99a [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:09:10 +01:00
Candice Bentéjac
60eaced5ea [qt6] Update setup script with the correct version of PySide 2024-11-07 18:09:09 +01:00
Candice Bentéjac
e1ef8acadc [qt6][Viewer3D] MediaLibrary: Fix loading medias from attributes
Additionally harmonize comments and explicitly declare parameters
for slots that need them.
2024-11-07 18:09:09 +01:00
Candice Bentéjac
2a7844480b [qt6][components] Update Scene3DHelper and TrackballController
Call the `QGeometry` objects from the correct module, and initialize
correctly the Camera object upon the construction of the
TrackballController object.
2024-11-07 18:09:08 +01:00
Candice Bentéjac
138cc18864 [qt6][Materials] Use correct graphics API and update SH shaders
With Qt6, OpenGL is not used directly anymore, and we thus must use
the RHI backend, set to version 1.0.

The SphericalHarmonics shaders, which were previously written in OpenGL,
need to be updated accordingly.
2024-11-07 18:09:07 +01:00
Candice Bentéjac
b65197e23e [qt6] Set the RHI backend to "opengl" 2024-11-07 18:09:06 +01:00
Candice Bentéjac
d5b5163828 [qt6] Remove shaders from Meshroom and move them to QtAliceVision 2024-11-07 18:09:05 +01:00
Candice Bentéjac
595e8f6c7a [qt6][qml] Do not explicitly set a Palette value with a QPalette 2024-11-07 18:09:04 +01:00
Candice Bentéjac
a62bed08eb [qt6][GraphEditor] Fix ColorDialog selection 2024-11-07 18:09:03 +01:00
Candice Bentéjac
b9ec8fe3b7 [qt6][GraphEditor] Rename identifiers for attribute items 2024-11-07 18:09:03 +01:00
Candice Bentéjac
0e71f2a520 [qt6] Update versions for all the imported modules
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00
Candice Bentéjac
6d845376eb [qt6] Use JS functions format to declare explicit parameters in slots
This fixes all the "Injection of parameters into signal handlers
is deprecated. Use JavaScript functions with formal parameters instead."
warnings.
2024-11-07 18:08:59 +01:00
Candice Bentéjac
1b9e75cd4f [qt6] Replace Qt.labs.settings with QtCore.Settings 2024-11-07 18:08:58 +01:00
Candice Bentéjac
d5cfdb1e85 [qt6] Re-enable alternative base and keyboard shortcut to switch to it 2024-11-07 18:08:57 +01:00
Candice Bentéjac
9923980041 [qt6] Use exec() instead of deprecated exec_() in __main__.py 2024-11-07 18:08:56 +01:00
Candice Bentéjac
02be73df65 [qt6] Remove properties that do not exist anymore in Qt6.6 2024-11-07 18:08:55 +01:00
Candice Bentéjac
96a70c04ff [qt6] Remove imports of QML modules that do not exist anymore with Qt6.6 2024-11-07 18:08:55 +01:00
Candice Bentéjac
579371fd7c [qt6] Replace all PySide2/shiboken2 imports by PySide6/shiboken6 2024-11-07 18:08:54 +01:00
Candice Bentéjac
f07c92472b [requirements] Update requirement for PySide to PySide 6.6.3.1 2024-11-07 18:08:53 +01:00
Candice Bentéjac
6c00826a11
Merge pull request #2557 from alicevision/dev/sequencePlayer
[ui] Use the improved Sequence Player and enable it by default
2024-11-06 16:57:38 +01:00
Fabien Servant @ TCS
554f9c047c
Merge pull request #2583 from alicevision/dev/updateTrackingPipelinesWithSplitSegmentation
Tracking pipelines segmentation update
2024-11-05 15:12:09 +01:00
Fabien Servant
457b640002 enable sequence player by default 2024-11-04 15:27:33 +01:00
Fabien Servant
eef1e6414e if player is at the end go back to 0 on play 2024-11-04 15:27:33 +01:00
Fabien Servant
11c28cb979 use scale instead of targetSize 2024-11-04 15:27:32 +01:00
Candice Bentéjac
c8a000820e
Merge pull request #2588 from alicevision/dev/sfmChecker
[nodes] Add new `SfMChecking` node
2024-10-31 17:08:13 +01:00
Candice Bentéjac
9ec0a17cf6 [nodes] SfMChecking: Rename node and minor process improvements 2024-10-31 17:04:32 +01:00
Yann Lanthony
c36cf99f77 Merge branches 'dev/split/descAttribute', 'dev/split/descNode', 'dev/split/descComputation' and 'dev/split/descModule' into dev/split/coreDescModule 2024-10-30 18:46:50 +01:00