qt - How to style the checkbox in a QListView so that the label is under the checkbox? -
i have horizontal qlistview , want customize checkbox , label inside stylesheet put label under checkbox, not @ right side.
how can done?
i'm not sure if work in case came looking similar thing (for qtreewidget checkboxes) , found works:
tree_widget.setstylesheet("qtreeview::indicator:checked { background:red; }"); i imagine qlistview have indicator, can't test right now. try this:
qlistview::indicator { subcontrol-position: top center; }
Comments
Post a Comment