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. Serial terminal example resize terminal window
Forum Updated to NodeBB v4.3 + New Features

Serial terminal example resize terminal window

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • B Offline
    B Offline
    Barney
    wrote on last edited by
    #1

    New to Qt and have been trying to resize the terminal centralWidget window so I can add some buttons down the side of the main window
    I can change the settings in designer but when I run it the size appears to follow the main window size
    Any help appreciated

    THANKS

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Hard to say for sure without seeing the source code, but I guess your centralWidget is in a layout. Widgets in layouts adjust their sizes to fit into that layout.

      You can add your new widgets (buttons, labels, etc.) to the layout. Or, you can find the layout in designer, break it, add your widgets and then create a new layout or set of layouts.

      (Z(:^

      B 1 Reply Last reply
      0
      • sierdzioS sierdzio

        Hard to say for sure without seeing the source code, but I guess your centralWidget is in a layout. Widgets in layouts adjust their sizes to fit into that layout.

        You can add your new widgets (buttons, labels, etc.) to the layout. Or, you can find the layout in designer, break it, add your widgets and then create a new layout or set of layouts.

        B Offline
        B Offline
        Barney
        wrote on last edited by
        #3

        @sierdzio the code that I am using is in the examples\serialport\terminal folder of the QT5.5 install directory
        Thanks

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Sorry I don't have the time now to check out the example.

          But my hint should be valid: break the layout in the designer, add your new widgets, then set up the layout again.

          (Z(:^

          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