'How to change QComboBox QAbstractItemView border radius in Qt Style sheet

enter image description here

I want the QCombobox to have a round shape similar to the picture above.

enter image description here

I made it somewhat similar.

enter image description here

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 1:[1]

comboBox_name.view().window().setWindowFlags(Qt.Popup | Qt.FramelessWindowHint)
comboBox_name.view().window().setAttribute(Qt.WA_TranslucentBackground)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ???