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. how to link two items in QtDesigner ?
Forum Updated to NodeBB v4.3 + New Features

how to link two items in QtDesigner ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 128 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.
  • A Offline
    A Offline
    aftalib
    wrote on last edited by
    #1

    hello, i'm working on a interface and i got this issue : i have my QTableView with a QPushButton next to it. i would like my QPushButton to follow the line of the QTableView he is alongside, because right size when i resize my window the QPushButton doesnt follow my tableview. see my screenshot here : Captouture.JPG

    does anyone have an idea ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Well, I think you set a fixed size on the spacer and that will not work when resizing the window.

      What you can do is to change the layout with the QTableViews to a Gridlayout. ( right-click it in the right side tree view and use the Layout menu to change it)
      Then move the buttons inside the grid layout with the Views. (delete the old layout where buttons were as we dont need it)

      Then on each button, right-click and change layout alignment to "TOP"

      alt text

      and it will resize like this. I hope its what you want :)
      alt text

      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