python - PyQt: display QPushButton that looks like the down-arrow button in QComboBox -
in pyqt4, want present qpushbutton looks down-arrow button in qcombobox. feasible, , if so, how?
i don't need getting new widget-combination acting qcombobox (see below). want qpushbutton display/graphic look down-arrow button in qcombobox - , tips/code on how overlay graphic (especially if said graphic comes via file) onto own qpushbutton.
more details, context:
i'm seeking replace qcombobox widget qlineedit + qcalendarwidget, because qdateedit isn't customizable need (i think...). thought place qpushbutton adjacent (on right-side) of qlineedit make things regular qcombobox as possible. said button .exec_() qcalendarwidget (which technically wrapped qdialog).
let me know if doesn't make sense, , can provide further or clarified context.
you can try qtoolbutton
no text , arrowtype
property set qt.downarrow
. eg: myqtoolbutton.setarrowtype(qt.downarrow)
.
Comments
Post a Comment