python - Having Qt.CustomizeWindowHint with Icon -
on winxp pythonxy , according qtdesigner etc. have small app qmainwindow calls modal qdialog. ensure close()
action performed pushbutton
provide, removed min/max/close titlebar mydialog.setwindowflags(qt.customizewindowhint | qt.dialog | qt.windowtitlehint)
. first of have rather strange have provide qt.dialog
flag well, otherwise dialog not show. in contrast main window shows when providing qt.customizewindowhint
only.
my main problem, however, set icon. on main window mymain.seticon(myicon)
works fine. if dialog gets additional flag qt.windowminimizebuttonhint
shows max/close disabled, can set icon well. in principle ok, want avoid closing [x] button. nevertheless, not satisfying.
how set icon no min/max/close in titlebar? on forum found, e.g. thread seticon in win7, seems hande win7 problems. furthermore, ctypes not seem have ctypes.windll.shell32
(python3 ?). there hasicon
missing , have use before can seticon(qicon)
?
Comments
Post a Comment