Skip to content
Snippets Groups Projects
Commit 7450eb70 authored by Lan Dam's avatar Lan Dam
Browse files

remove setting environment variable QT_MAC_WANTS_LAYER to 1

parent 4fbc6170
No related branches found
No related tags found
1 merge request!155Convert pyside6
......@@ -7,17 +7,6 @@ from PySide6 import QtWidgets
from sohstationviewer.view.main_window import MainWindow
# Enable Layer-backing for MacOs version >= 11
# Only needed if using the pyside2 library with version>=5.15.
# Layer-backing is always enabled in pyside6.
os_name, version, *_ = platform.platform().split('-')
# if os_name == 'macOS' and version >= '11':
# mac OSX 11.6 appear to be 10.16 when read with python and still required this
# environment variable
if os_name == 'macOS':
os.environ['QT_MAC_WANTS_LAYER'] = '1'
def main():
app = QtWidgets.QApplication(sys.argv)
wnd = MainWindow()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment