How to prevent a user from moving the size of a column in QtableWidget using Python and Qt? -


i created qtablewidget whith 2 columns in qt creator.

i found out how set width of column setcolumnwidth() function. in gui user can still change width of columns. how can set width fixed size , forbid user modify it?

use table.horizontalheader().setsectionresizemode(...) (or setresizemode in older qt versions) appropriate resize mode.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -