Through the mouse to drag the column width



  • I use the QTableWidget and I need to drag the column width from 100 to 0 with mouse.But now i can only drag to about min 1cm width,then it wasn't smaller any more.
    Anyone can help to tell me how to do ?Thanks!



  • Hi,
    There are settings for the minimum column width! It's probably set to none zero and it's controlled by the horizontalheader
    horizontalHeaderMinimumSectionSize should do the trick.
    Greetz



  • Hi Greetz,
    It is OK!
    I am a new developr of QT, and this problem bothering me three days.
    Thank you very much!
    Bada
    [quote author="Jeroentje@home" date="1381750119"]Hi, There are settings for the minimum column width! It's probably set to none zero and it's controlled by the horizontalheader horizontalHeaderMinimumSectionSize should do the trick. Greetz[/quote]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.