Qt World Summit: Register Today!

TableWidget Horizontal alignment

  • I'm slowly getting the hang of QT.
    I want to display my measurements inside a "Table".
    So I use TableWidget. It works well except for a horizontal alignment problem.
    This is the result of my work (after measurement is taken) :

    Edit Widget Interface.jpg

    See how all the numbers are aligned left (by default)?
    This is despite having specified otherwise in Edit Widget dialog :

    Edit Table Widget.jpg

    Have no idea what I'm doing wrong... Any help is appreciated.

    Also, if you have any suggestions to edit the column widths?

  • @RogerBreton did you modify the property through code for alignment?
    Can you post the code used for set the data to Tablewidget?

Log in to reply