Skip to content

WIP add pinch zoom#241

Draft
m-novikov wants to merge 2 commits intoilastik:mainfrom
m-novikov:test-touch
Draft

WIP add pinch zoom#241
m-novikov wants to merge 2 commits intoilastik:mainfrom
m-novikov:test-touch

Conversation

@m-novikov
Copy link
Copy Markdown
Contributor

#!/usr/bin/env python3
from volumina.api import Viewer
from PyQt5.QtWidgets import QApplication

app = QApplication(["TestApp"])
app.setApplicationName("TestApp")
v = Viewer()
v.setWindowTitle("TestApp")
import numpy

a = numpy.random.randint(0, 255, size=(512, 512, 3), dtype=numpy.uint8)
v.addGrayscaleLayer(a, name="raw")
v.show()


def change():
    v.dataShape = (1, 100, 200, 300, 1)


# QTimer.singleShot(200, change)
app.exec_()

@m-novikov
Copy link
Copy Markdown
Contributor Author

@emilmelnikov please test when you have the chance

@emilmelnikov
Copy link
Copy Markdown
Member

emilmelnikov commented Nov 18, 2020

Tried this on the latest Windows 10 (20H2) with the changes rebased on the current master, but pinch-to-zoom doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants