issues/777

This commit is contained in:
恍兮惚兮 2024-05-30 21:04:22 +08:00
parent b240e376f6
commit 346edc996e
2 changed files with 7 additions and 3 deletions

View File

@ -17,7 +17,9 @@ class rangeadjust(Mainw):
self._isTracking = False
self._rect = None
self.setWindowFlags(
Qt.WindowType.WindowStaysOnTopHint | Qt.WindowType.FramelessWindowHint
Qt.WindowType.WindowStaysOnTopHint
| Qt.WindowType.FramelessWindowHint
| Qt.WindowType.Tool
)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
@ -117,7 +119,9 @@ class rangeselct(QMainWindow):
super(rangeselct, self).__init__(parent)
self.setWindowFlags(
Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowStaysOnTopHint
Qt.WindowType.FramelessWindowHint
| Qt.WindowType.WindowStaysOnTopHint
| Qt.WindowType.Tool
)
self.rectlabel = QLabel(self)
# self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 3)
set(VERSION_MINOR 0)
set(VERSION_PATCH 3)
set(VERSION_PATCH 4)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)