Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block dockwidgets #217

Merged
merged 13 commits into from
Feb 20, 2024
Merged

Block dockwidgets #217

merged 13 commits into from
Feb 20, 2024

Conversation

paskino
Copy link
Contributor

@paskino paskino commented Jan 10, 2024

Uses flag NoDockWidgetFeatures which prevents a lot of complications in handling QDockWidgets and makes the GUI more static.

  • Set movable to False in tabified DockWidgets both in the main window and in the result window.
  • Remove default popupMenu by overloading createPopupMenu, i.e. removes the weird list of the tabs which were in a pseudo-random order. This is done both in the app main window and the right hand side main window.
  • During the registration, the "Image Registration" tab appears. This is no longer floatable, movable and closable.

The 2D viewer widget appears to be a QMainWindow and not a QDockWidget, hence I don't exactly know how to set the title. I tried with setWindowTitle but it doesn't show up.

class VisualisationWidget(QtWidgets.QMainWindow):

Closes #174
Closes #178

Tested on Windows.

@paskino paskino requested a review from DanicaSTFC January 10, 2024 17:24
@paskino paskino requested a review from DanicaSTFC February 3, 2024 00:37
@DanicaSTFC DanicaSTFC self-assigned this Feb 16, 2024
@DanicaSTFC
Copy link
Contributor

DanicaSTFC commented Feb 16, 2024

if we right click on the tabs '2D Viewer', 'Help', 'Image information', the list of tabs appears

@paskino We need to remove default popupMenu by overloading createPopupMenu in the viewer.

@DanicaSTFC DanicaSTFC merged commit 0ba76c3 into master Feb 20, 2024
3 checks passed
@DanicaSTFC DanicaSTFC deleted the block_dockwidgets branch February 20, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants