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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -