| 115 | |
| 116 | |
| 117 | class ComboBoxStyle(QWidget): |
| 118 | def __init__(self, *args, **kwargs): |
| 119 | super().__init__(*args, **kwargs) |
| 120 | layout = QVBoxLayout(self) |
| 121 | self.comboBox1 = QComboBox(self) |
| 122 | self.comboBox2 = QComboBox(self) |
| 123 | layout.addWidget(self.comboBox1) |
| 124 | layout.addWidget(self.comboBox2) |
| 125 | |
| 126 | items = ["Item " + str(i) for i in range(10)] |
| 127 | self.comboBox1.addItems(items) |
| 128 | self.comboBox2.addItems(items) |
| 129 | |
| 130 | FramelessComboBox(self.comboBox1) |
| 131 | FramelessComboBox(self.comboBox2) |
| 132 | |
| 133 | |
| 134 | if __name__ == "__main__": |