KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How could I customize the Title Bar (including: close, maximize, minimize buttons, title) and the Frame of desktop application written in PyQt so that it looks like the below image?. I need a way to specify the colors I want to use for title bar elements (buttons, text title and background-color of bar and buttons). the code which I need to change its window: import sys from PyQt5 import QtCore, uic from PyQt5.QtWidgets import QApplication, QDialog class MainWindow(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent) self.setWindowFlags(QtCore.Qt.FramelessWindowHint) self.resize(500, 600) if __name__ == "__main__": app = QApplication(sys.argv) window = MainWindow() sys.exit(app.exec_()) Is there any way to do that? I appreciate any suggestion and idea to doing this.
Tags (comma-separated)
Save Edits
Cancel