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. Centralise table in table Widget
Forum Updated to NodeBB v4.3 + New Features

Centralise table in table Widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 406 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.
  • G Offline
    G Offline
    GCDX
    wrote on last edited by
    #1

    0_1531208798270_e142059a-6890-4881-a1a2-537e096c469c-image.png

    Hi! I was wondering is it possible to centralise the tables in my table widgets to the middle of each page??

    jsulmJ 1 Reply Last reply
    0
    • G GCDX

      0_1531208798270_e142059a-6890-4881-a1a2-537e096c469c-image.png

      Hi! I was wondering is it possible to centralise the tables in my table widgets to the middle of each page??

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @GCDX They already are. It's just that the columns don't fill all available space.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • R Offline
        R Offline
        Rajashekara
        wrote on last edited by
        #3

        Try this,
        m_hlyt->addWidget(m_view,Qt::AlignHCenter);

        m_widget->setLayout(m_hlyt2);
        m_vlyt->addWidget(m_widget,1);
        this->setLayout(m_vlyt);
        
        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