Utility functions and classes for Qt4 applications.
Functions
| actionGroupToMenu(actionGroup, label, mainwin) | |
| actionGroupToToolbar(actionGroup, label[, name]) | |
| numpy2qimage(data) | Convert a numpy array into a QImage |
| overrideCursor(func) | |
| rotatefactor(qmatrix) | Return only rotate factor applied with input QMatrix in rad ( ]-pi, pi] ). |
| toQPixmap(data) | |
| zoomfactor(qmatrix) | Return only zoom factor applied with input QMatrix. |
Return only rotate factor applied with input QMatrix in rad ( ]-pi, pi] ).
No operation had to be done except positive equi-dimensional zoom and simple rotation. In other cases return None.
Return only zoom factor applied with input QMatrix.
Zoom factor 1 means no zoom performed. No operation had to be done except positive equi-dimensional zoom and simple rotation. In other cases return None.