Hello World / plɹoM ollǝH

Programmers Live in Vain

2017-10-01から1ヶ月間の記事一覧

プログラマのためのMaya攻略法

Mayaの内部構造をgoogle先生をウロウロしながら理解するのは効率が悪いので次の方法がおすすめ Complete Maya Programmingを読む devkitのサンプルを覗く MELコマンドの仕様はリファレンスを読む Complete Maya Programmingは分厚く読むのは疲れるが、ツール…

PySide keyPressEventが反応しないとき

もしかして self.setFocusPolicy(QtCore.Qt.StrongFocus) し忘れているんじゃないでしょうか。

PySide1と2でQScrollArea::wheelEventの動作が若干違う

違うんじゃあああああああああああああああああぁぁぁぁあああばばばっばばばば # from PySide2.QtWidgets import * from PySide.QtGui import * import sys app = QApplication(sys.argv) class MyWidget(QWidget): def wheelEvent(self, event): print('ho…

QTimer.singleShotをサブスレッドで使うには

呼び出しスレッド側でexec関数をよんでイベントループを開始せよ QTimer Class | Qt 4.8 In multithreaded applications, you can use QTimer in any thread that has an event loop. To start an event loop from a non-GUI thread, use QThread::exec(). Q…