Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved Centralise table in table Widget

    General and Desktop
    3
    3
    213
    Loading More Posts
    • 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
      GCDX last edited by

      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??

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @GCDX last edited by

        @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 Reply Quote 2
        • R
          Rajashekara last edited by

          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 Reply Quote 0
          • First post
            Last post