Skip to content

Remove QtWebEngine and replace with system browser#3847

Closed
rozyczko wants to merge 7 commits intomainfrom
3511-use-native-browser-for-help
Closed

Remove QtWebEngine and replace with system browser#3847
rozyczko wants to merge 7 commits intomainfrom
3511-use-native-browser-for-help

Conversation

@rozyczko
Copy link
Copy Markdown
Member

Description

This is a preliminary version of the QtWebEngine-less SasView.
All calls have been converted to consistent system browser calls.
References to QtWebEngine were removed.
Tests updated (although we don't run these tests, anyway)

Fixes #3511

How Has This Been Tested?

Locally on Win11

Review Checklist:

[if using the editor, use [x] in place of [ ] to check a box]

Documentation (check at least one)

  • There is nothing that needs documenting
  • Documentation changes are in this PR
  • There is an issue open for the documentation (link?)

Installers

  • There is a chance this will affect the installers, if so
    • Windows installer (GH artifact) has been tested (installed and worked)
    • MacOSX installer (GH artifact) has been tested (installed and worked)
    • Wheels installer (GH artifact) has been tested (installed and worked)

Licensing (untick if necessary)

  • The introduced changes comply with SasView license (BSD 3-Clause)

@rozyczko rozyczko marked this pull request as draft January 24, 2026 13:43
@llimeht
Copy link
Copy Markdown
Contributor

llimeht commented Jan 25, 2026

Will this get us to only needing PySide6-Essentials as a (build)dependency? (no need for PySide6-Addons)?

Some quick grepping makes me think you might have already got there. That would be fantastic.

@rozyczko
Copy link
Copy Markdown
Member Author

There's still one remaining Addons dependency:

from PySide6.QtDataVisualization import Q3DScatter, QScatter3DSeries, QScatterDataItem, QValue3DAxis

We need it for the Shape2SAS 3D scatter plot viewer. Replacing it with something from Essentials (e.g., matplotlib 3D plots or a custom implementation) to fully drop the Addons dependency.

@rozyczko
Copy link
Copy Markdown
Member Author

This PR can go Ready as soon as the ADR #3511 is agreed on.

@rozyczko rozyczko requested a review from krzywon January 26, 2026 13:03
@jamescrake-merani
Copy link
Copy Markdown
Contributor

There's still one remaining Addons dependency:

QtDataVisualization is actually deprecated. iirc it caused some issues with the Flatpak, although I don't remember how it was resolved. According to the QT documentation, we're supposed to use QT Graphs instead.

https://doc.qt.io/qt-6/qtgraphs-migration-guide.html

@rozyczko rozyczko marked this pull request as ready for review February 3, 2026 17:59
Comment thread src/sas/qtgui/Utilities/GuiUtils.py Outdated
Comment thread src/sas/qtgui/Utilities/GuiUtils.py Outdated
Comment thread src/sas/qtgui/Utilities/GuiUtils.py Outdated
@krzywon
Copy link
Copy Markdown
Contributor

krzywon commented Mar 20, 2026

@rozyczko to take another look at this.

Comment thread test/system/utest_help.py
self.hs.show_help(str(absolute_url))

opened_url = mock_wb.open.call_args[0][0]
assert opened_url == (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assert is failing on Ubuntu and MacOS, but succeeding for Windows. Somehow tmp_path is not empty.

Side note: The url for previous docs starts with https://www.sasview.org/docs/old_docs/<ver>/. The URL you are using will resolve, but as a 404 page.

@rozyczko
Copy link
Copy Markdown
Member Author

Closing with #3923 being the replacement.

@rozyczko rozyczko closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants