hello!
i have some question that as i see appears many times, but nevertheless i can't find the solution for me.
i have some widget, and the button in it, and when i press this button i want to appear some other widget, frameless and not
showing in the taskbar.
i can achieve two results - frameless or 'taskbarless' =)
1 -frameless - everything is ok, but it of course appears in the taskbar
(code in PyQt4)
self.
add_new_light_widget = QWidget()self.add_new_light_widget.setWindowFlags(Qt.WindowFlags(Qt.FramelessWindowHint))
self.add_new_light_widget = QWidget()
self.add_new_light_widget.setWindowFlags(Qt.WindowFlags(Qt.FramelessWindowHint))
To copy to clipboard, switch view to plain text mode
2 - 'taskbarless' - now it is the dialog with the parent of main widget, so it doesbn't appears in the taskbar
self.
add_new_light_widget = QDialog(self
)self.add_new_light_widget.setWindowTitle("About")
self.add_new_light_widget.setWindowFlags(Qt.WindowFlags(Qt.Dialog))
self.add_new_light_widget = QDialog(self)
self.add_new_light_widget.setWindowTitle("About")
self.add_new_light_widget.setWindowFlags(Qt.WindowFlags(Qt.Dialog))
To copy to clipboard, switch view to plain text mode
but if i use
self.add_new_light_widget.setWindowFlags(Qt.WindowFlags(Qt.CustomizeWindowHint))
self.add_new_light_widget.setWindowFlags(Qt.WindowFlags(Qt.CustomizeWindowHint))
To copy to clipboard, switch view to plain text mode
(or frameless hint) my new widget will not show!
please help me - where am i wrong?
thank you!
Bookmarks