Where are you getting this program from? As I said, your Qt version is old. If I'm not mistaken, the Qt version packed with Windows is Qt 5.12. Look at mario's post.
The module to import is called PySide2, not pyside2.
Code: Select all
Traceback (most recent call last): File "C:/Users/Matt/AppData/Roaming/FreeCAD/dialogtest.FCMacro", line 26, in <module> from pyside2 import QtCore, QtGui, QtWidgets <class 'ModuleNotFoundError'>: No module named 'pyside2'