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. Stretch middle table's section
Forum Updated to NodeBB v4.3 + New Features

Stretch middle table's section

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 115 Views 1 Watching
  • 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.
  • Evgeny SiberiaE Offline
    Evgeny SiberiaE Offline
    Evgeny Siberia
    wrote on last edited by Evgeny Siberia
    #1

    Hi. We have such a nice function in QHeaderView as setStretchLastSection. But if we need to stretch a middle column how we can do it (last section musts be pressed at right side)?

    Found a solution:

    ui->_table->horizontalHeader()->setSectionResizeMode('middleColumn', QHeaderView::Stretch);
    

    if you see mistakes in English tell me about it

    1 Reply Last reply
    3

    • Login

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