Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TableWidget Horizontal alignment
QtWS25 Last Chance

TableWidget Horizontal alignment

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 160 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RogerBretonR Offline
    RogerBretonR Offline
    RogerBreton
    wrote on last edited by
    #1

    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?

    Roger Breton
    www.graxx.ca

    1 Reply Last reply
    0
    • nageshN Offline
      nageshN Offline
      nagesh
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved