

It can only work on windowed applications as the fullscreen mode will hide it.

You can remedy this by switching to a borderless fullscreen mode. Versatile with its optionsĪll in all, CrossOver is a neat little gaming utility for any fans of FPS games.

It’s easy to deploy and use and offers a variety of customization options to make it easier for you to play your games. However, it only works on windowed mode to use it in fullscreen mode, you’ll need the borderless type and not all games offer that. All Games Supportd Custom Aim - Crsshair Generator supports aImost all popular shoting FPS games t change the defauIt crosshair designs f your game. Self.m_yText.Nonetheless, it’s a highly recommended tool to use because of its extensive configurations. Self.m_yText.document().setDocumentMargin(0.0) Self.m_xText.document().setDocumentMargin(0.0) class Crosshairs():ĭef _init_(self, chart: QChart, scene: QGraphicsScene): here a better approach that took care of it. I tried the above solution and was not happy with performance on a dynamic chart. tCursor(QtCore.Qt.PointingHandCursor)ĭef _init_(self, start=1, parent=None): Self._value_pos = self.chart().mapToValue(sp) Y2 = QtCore.QPointF(sp.x(), area.bottom() - pen.width() / 2) Y1 = QtCore.QPointF(sp.x(), area.top() + pen.width() / 2) X2 = QtCore.QPointF(area.right() - pen.width() / 2, sp.y()) X1 = QtCore.QPointF(area.left() + pen.width() / 2, sp.y()) Sp = self.chart().mapToPosition(self._value_pos) If self.chart() is None or self._value_pos.isNull(): Self.adjust_axes(math.floor(value1), math.ceil(value2))Ī possible solution is to override the drawForeground method of QChartView where the lines should be drawn based on the mouse position: class ChartView(QtChart.QChartView): Self._chart.axisX(self._line_serie).setRange(value_min, onAxisSliderMoved(self, value): If value_min >= 0 and value_max >= 0 and value_max value_min: Self.onAxisSliderMoved(())ĭef adjust_axes(self, value_min, value_max): Self._chart.addAxis(axisX, Qt.AlignBottom) Self._line_serie.append(QtCore.QPointF(i, mas)) Lay = QtWidgets.QVBoxLayout(central_widget)įor w in (self._chart_view, self.scrollbar): Mas =ĭef _init_(self, start = 1, parent=None): from PyQt5 import QtCore, QtGui, QtWidgets, QtChart Сan use this code as a basis to add a crosshair. I want to use the button to add and remove the crosshair. There are few examples on the Internet on this topic. The crosshair should move behind the mouse. I need to add a crosshair, like here on the page.
