Exemple #1
0
    def __init__(self, model, parent=None):
        QGraphicsView.__init__(self, parent)

        scene = ModelDialogScene(model, parent)
        scene.tableSelected.connect(self.tableSelected)
        self.setScene(scene)
        self.setRenderHints(QPainter.Antialiasing)
Exemple #2
0
 def __init__(self, iface):
     self.iface = iface
     QGraphicsView.__init__(self)
     self.selectlines = []
     self.ids = []
     self.width = 250
     self.idfield = 'id'  # Needs to be userselectable or autoset
     self.setMouseTracking(True)
 def __init__(self, yTitle, parent=None):
     QGraphicsView.__init__(self, parent)
     self.setScene(PlotScene(yTitle, parent))
     # enable mousmove when no mouse button is pressed
     self.setMouseTracking(True)
     # set fixed height and scrollbat policies
     self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
     self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
    def __init__(self, scene, parent=None):
        QGraphicsView.__init__(self, scene, parent)

        self.__allow_mouse_translation = True
        self.__translation_orig = None
        self.__translation_min_x = None
        self.__translation_max_x = None

        self.setMouseTracking(True)
 def __init__(self, parent=None):
     QGraphicsView.__init__(self, parent)
     self.setScene(PlotScene(parent))
     # set fixed height and scrollbat policies
     self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
     self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
Exemple #6
0
 def __init__(self, iface):
     self.iface = iface
     QGraphicsView.__init__(self)
     self.linex = 0