Issue
I want the QCombobox to have a round shape similar to the picture above.
I made it somewhat similar.
But when I click the QComboBox to check the list, the round shape is not created.
The border is round, but the background doesn't seem to be the case.
QComboBox:editable {
background-color : red;
}
QComboBox QAbstractItemView {
border : 2px solid blue;
border-radius: 6px;
}
This is the 3rd photo style sheet. I wrote it for testing.
Solution
comboBox_name.view().window().setWindowFlags(Qt.Popup | Qt.FramelessWindowHint)
comboBox_name.view().window().setAttribute(Qt.WA_TranslucentBackground)
Answered By - 김지태
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.