常に最前に表示

2016/09/02

Python2.7.10, PySide1.2.2

import sys
from PySide import QtGui, QtCore

class mymainwindow(QtGui.QMainWindow):
    def __init__(self):
        QtGui.QMainWindow.__init__(self, None, QtCore.Qt.WindowStaysOnTopHint)

app = QtGui.QApplication(sys.argv)
mywindow = mymainwindow()
mywindow.show()
app.exec_()


PyQt: Always on top
http://stackoverflow.com/questions/1925015/pyqt-always-on-top