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. What to make the size of my interface adjustable
Forum Update on Monday, May 27th 2025

What to make the size of my interface adjustable

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

    Dear All

    I have set up a working UI with a fixed size. I am working with my UI WYSIWYG like with QT Designer.
    I have set up a minimal UI hopefully this explains my Problem:
    My UI contents have a size larger than my fullscreen resolution (here represented by QTextEdit named console with 3000x3000. I hoped putting a scroll Area(QScrollArea) between the UI Elements and the centralWidget should enable me to have scrollbars to see also right and bottom area of my empty Text Edit (or non Empty UI in my real case with 1920x1050 combined size).
    Here the test.UI file:
    @<?xml version="1.0" encoding="UTF-8"?>
    <ui version="4.0">
    <class>PCLViewer</class>
    <widget class="QMainWindow" name="PCLViewer">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>1920</width>
    <height>1050</height>
    </rect>
    </property>
    <property name="minimumSize">
    <size>
    <width>0</width>
    <height>0</height>
    </size>
    </property>
    <property name="maximumSize">
    <size>
    <width>5000</width>
    <height>5000</height>
    </size>
    </property>
    <property name="windowTitle">
    <string>PCLViewer</string>
    </property>
    <widget class="QWidget" name="centralwidget">
    <property name="palette">
    <palette>
    <active>
    <colorrole role="ToolTipBase">
    <brush brushstyle="SolidPattern">
    <color alpha="255">
    <red>0</red>
    <green>0</green>
    <blue>0</blue>
    </color>
    </brush>
    </colorrole>
    </active>
    <inactive>
    <colorrole role="ToolTipBase">
    <brush brushstyle="SolidPattern">
    <color alpha="255">
    <red>0</red>
    <green>0</green>
    <blue>0</blue>
    </color>
    </brush>
    </colorrole>
    </inactive>
    <disabled>
    <colorrole role="ToolTipBase">
    <brush brushstyle="SolidPattern">
    <color alpha="255">
    <red>0</red>
    <green>0</green>
    <blue>0</blue>
    </color>
    </brush>
    </colorrole>
    </disabled>
    </palette>
    </property>
    <widget class="QScrollArea" name="scrollArea">
    <property name="geometry">
    <rect>
    <x>170</x>
    <y>10</y>
    <width>1711</width>
    <height>1011</height>
    </rect>
    </property>
    <property name="widgetResizable">
    <bool>true</bool>
    </property>
    <widget class="QWidget" name="scrollAreaWidgetContents">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>1709</width>
    <height>1009</height>
    </rect>
    </property>
    <widget class="QTextEdit" name="console">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>3000</width>
    <height>3000</height>
    </rect>
    </property>
    <property name="frameShadow">
    <enum>QFrame::Sunken</enum>
    </property>
    <property name="lineWidth">
    <number>5</number>
    </property>
    <property name="readOnly">
    <bool>true</bool>
    </property>
    </widget>
    </widget>
    </widget>
    </widget>
    </widget>
    <resources/>
    <connections/>
    </ui>@
    Should be a simple fix hopefully.

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _Jan_H_
      wrote on last edited by
      #2

      First of all,
      seems like wrong sub forum. May somebody move this maybe to tools. Second it seems I have to add a Layout here. Dont know how I could do it, a Layout totally messes up my so far design.

      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