[mcstas-users] qt problems using wsl ubuntu 24.04.1
Robert Dalgliesh - STFC UKRI
robert.dalgliesh at stfc.ac.uk
Thu Jul 31 12:30:40 CEST 2025
Hi,
I have been running the Debian/ubuntu install of mcstas fine using 22.04.5 with the windows subsystem for linux.
Everything works very smoothly.
Unfortunately, if I install under the newer ubuntu 24.04.1 from a completely clean system a qt error occurs that prevents popup windows from the insert menu being opened by the main application.
Traceback (most recent call last):
File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 404, in handle
self.cb(self.comp_parser)
File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 463, in __handleComponentClicked
dlg = McInsertComponentDialog()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 912, in __init__
self.ui.setupUi(self)
File "/usr/share/mcstas/tools/Python/mcgui/widgets.py", line 737, in setupUi
self.edtAtRel.setLayoutDirection(QtCore.Qt.LeftToRight)
^^^^^^^^^^^^^^^^^^^^^
I’ve tried this on a couple of different PCs and see the same error.
Removing the lines with setLayoutDirection(QtCore.Qt.LeftToRight) from widgets.py and relying on the default layout seems to work.
Presumably the change to qt6 has caused a problem but I’ve not been able to figure out what the change is.
Rob
====================================================================
If you receive this email outside working hours then please do not feel obliged to reply
====================================================================
Dr. Robert Dalgliesh
Small Angle Scattering Group Leader
ISIS Neutron and Muon Source
Science and Technology Facilities Council
Building R3 1.29,
Rutherford Appleton Laboratory,
Harwell Campus,
Didcot
Oxfordshire,
OX11 0QX.
UK
Tel: +44(0)1235-445687
Email: Robert.dalgliesh at stfc.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250731/6c32ed45/attachment.htm>
More information about the mcstas-users
mailing list