Qt with Python size of headeritem in Qtablewidget -


i developping gui using python , qt. problem can't set , fix value columns.

i created table called "tablewidget_segment_list" 2 columns (using qt designer)

i set first width column 100px , second 1 50px.

and fixed values against user.

thank you

you can in either way:

  1. in qtdesigner, right click on widget, select "changestylesheet"

  2. in script code, do

    table.setcolumnwidth(1, 100) table.setcolumnwidth(2, 50) 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -