常に最前に表示

2016/09/02

Python2.7.10, PyQt4.11.3

import sys
from PyQt4 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