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. [Very hard issue] Wrong widget size calculation, or layout behavior is incorrect on Windows 10
Qt 6.11 is out! See what's new in the release blog

[Very hard issue] Wrong widget size calculation, or layout behavior is incorrect on Windows 10

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 602 Views 3 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.
  • MasterBLBM Offline
    MasterBLBM Offline
    MasterBLB
    wrote on last edited by MasterBLB
    #1

    Hello mates

    I need some hints why my widget application wrongly resizes HEAD part.
    This is compiled for Windows10:
    1WrongSize.PNG

    And this older compilation done on Windows7, and the app is installed on Win10; size is correct
    1CorrectSize.PNG

    Blue border is an overlay, a QWidget with mask set to leave just the frame you see - by the way, it perfectly highlight border of inventory widget.

    Part widget(HEAD and other parts belongs to this) is build like:

    QVBoxLayout spacing 3, margins 0, stretch 0,0,0 and SetDefaultConstraint
    {
       [own GroupBox with various stuff inside] QSizePolicy minimum, minimum
       [inventory own widget] expanding, expanding
       [QSpacer <-> QPushButton <-> QSpacer in QHBoxLayout] 
    }
    

    And these parts are in the big widget you can see on screenshots above. Its part where HEAD, CENTER TORSO and other stuff are located are build like:

    QVBoxLayout spacing 4, margins 0, stretch 0,0,0,0 and SetDefaultConstraint
    {
         [HeadPart] preffered, minimum
         [CenterTorsoPart] preffered, minimum
         [Ammo info QGroupBox, it contains QScrollArea inside] expanding, expanding
         [initially hidden QWidget] preffered, preffered
    }
    

    I have implemented sizeHint() for the inventory like:

    InventoryBase::InventoryBase(QWidget *parent)
    : QWidget(parent)
    {
        SettingsContainer &settings = SettingsContainer::getInstance();
        penSize = settings.getSlotlineWidth();
    
        slotsCount = 1;
        slotWidth = settings.getSlotWidth();
        slotHeight = settings.getSlotHeight();
    }
    //#include <QDebug>
    QSize InventoryBase::sizeHint() const
    {
        QSize size(slotWidth + penSize, slotHeight * slotsCount + penSize);
        //qDebug() << "slots: " << slotsCount << ", size: " << size;
        //const_cast<InventoryBase*>(this)->setFixedHeight(size.height());//trochę pomaga, ale nie do końca
        return size;
    }
    //and have reimplemented minimumSizeHint() just to call sizeHint()
    

    Any idea how to approach this issue? For me is looks like some very deep widget size determining by layout(though I've provided sizeHint and minimunSizeHint), because i was able to artificially limit height of the widget, but then QGroupBox in the part widget was incorrectly oversized.

    Qt 5.15.2

    C 1 Reply Last reply
    0
    • MasterBLBM MasterBLB

      Hello mates

      I need some hints why my widget application wrongly resizes HEAD part.
      This is compiled for Windows10:
      1WrongSize.PNG

      And this older compilation done on Windows7, and the app is installed on Win10; size is correct
      1CorrectSize.PNG

      Blue border is an overlay, a QWidget with mask set to leave just the frame you see - by the way, it perfectly highlight border of inventory widget.

      Part widget(HEAD and other parts belongs to this) is build like:

      QVBoxLayout spacing 3, margins 0, stretch 0,0,0 and SetDefaultConstraint
      {
         [own GroupBox with various stuff inside] QSizePolicy minimum, minimum
         [inventory own widget] expanding, expanding
         [QSpacer <-> QPushButton <-> QSpacer in QHBoxLayout] 
      }
      

      And these parts are in the big widget you can see on screenshots above. Its part where HEAD, CENTER TORSO and other stuff are located are build like:

      QVBoxLayout spacing 4, margins 0, stretch 0,0,0,0 and SetDefaultConstraint
      {
           [HeadPart] preffered, minimum
           [CenterTorsoPart] preffered, minimum
           [Ammo info QGroupBox, it contains QScrollArea inside] expanding, expanding
           [initially hidden QWidget] preffered, preffered
      }
      

      I have implemented sizeHint() for the inventory like:

      InventoryBase::InventoryBase(QWidget *parent)
      : QWidget(parent)
      {
          SettingsContainer &settings = SettingsContainer::getInstance();
          penSize = settings.getSlotlineWidth();
      
          slotsCount = 1;
          slotWidth = settings.getSlotWidth();
          slotHeight = settings.getSlotHeight();
      }
      //#include <QDebug>
      QSize InventoryBase::sizeHint() const
      {
          QSize size(slotWidth + penSize, slotHeight * slotsCount + penSize);
          //qDebug() << "slots: " << slotsCount << ", size: " << size;
          //const_cast<InventoryBase*>(this)->setFixedHeight(size.height());//trochę pomaga, ale nie do końca
          return size;
      }
      //and have reimplemented minimumSizeHint() just to call sizeHint()
      

      Any idea how to approach this issue? For me is looks like some very deep widget size determining by layout(though I've provided sizeHint and minimunSizeHint), because i was able to artificially limit height of the widget, but then QGroupBox in the part widget was incorrectly oversized.

      Qt 5.15.2

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @MasterBLB So you have two vertical layouts but somehow obtain horizontal placement. You will have to provide the UI file, or your code if done manually. The area bounded by the red bars overlaps other content in which indicates that some, or all, of the content is not in a Qt layout.

      MasterBLBM 1 Reply Last reply
      0
      • C ChrisW67

        @MasterBLB So you have two vertical layouts but somehow obtain horizontal placement. You will have to provide the UI file, or your code if done manually. The area bounded by the red bars overlaps other content in which indicates that some, or all, of the content is not in a Qt layout.

        MasterBLBM Offline
        MasterBLBM Offline
        MasterBLB
        wrote on last edited by MasterBLB
        #3

        @ChrisW67
        The area you're writing about is a separate widget, not placed in the layout.
        Well, I can't paste .ui files directly, but as xml code.

        This is how HEAD, and other parts are built (btw, can I make these text walls collapsible?)::

        <?xml version="1.0" encoding="UTF-8"?>
        <ui version="4.0">
         <class>MechPartWidget</class>
         <widget class="QWidget" name="MechPartWidget">
          <property name="geometry">
           <rect>
            <x>0</x>
            <y>0</y>
            <width>320</width>
            <height>456</height>
           </rect>
          </property>
          <property name="sizePolicy">
           <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="windowTitle">
           <string>Form</string>
          </property>
          <layout class="QVBoxLayout" name="verticalLayout">
           <property name="spacing">
            <number>3</number>
           </property>
           <property name="leftMargin">
            <number>0</number>
           </property>
           <property name="topMargin">
            <number>0</number>
           </property>
           <property name="rightMargin">
            <number>0</number>
           </property>
           <property name="bottomMargin">
            <number>0</number>
           </property>
           <item>
            <widget class="TwoColoredGroupBox" name="groupBox">
             <property name="sizePolicy">
              <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
             <property name="minimumSize">
              <size>
               <width>0</width>
               <height>0</height>
              </size>
             </property>
             <property name="maximumSize">
              <size>
               <width>16777215</width>
               <height>95</height>
              </size>
             </property>
             <property name="font">
              <font>
               <pointsize>10</pointsize>
               <weight>75</weight>
               <bold>true</bold>
              </font>
             </property>
             <property name="title">
              <string>Mech part name</string>
             </property>
             <property name="alignment">
              <set>Qt::AlignCenter</set>
             </property>
             <property name="flat">
              <bool>false</bool>
             </property>
             <property name="checkable">
              <bool>false</bool>
             </property>
             <layout class="QGridLayout" name="gridLayout">
              <property name="leftMargin">
               <number>3</number>
              </property>
              <property name="topMargin">
               <number>2</number>
              </property>
              <property name="rightMargin">
               <number>3</number>
              </property>
              <property name="bottomMargin">
               <number>1</number>
              </property>
              <property name="spacing">
               <number>2</number>
              </property>
              <item row="0" column="0">
               <widget class="ArmorTogglingLabel" name="labelFrontArmorText">
                <property name="font">
                 <font>
                  <pointsize>8</pointsize>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Front armor. Click to switch between max <-> 0 armor</string>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="pixmap">
                 <pixmap>GUI/ArmorFront.PNG</pixmap>
                </property>
               </widget>
              </item>
              <item row="0" column="1">
               <widget class="MirroredSlider" name="frontArmorSlider">
                <property name="font">
                 <font>
                  <pointsize>8</pointsize>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Slider for armor setup</string>
                </property>
                <property name="singleStep">
                 <number>5</number>
                </property>
                <property name="pageStep">
                 <number>5</number>
                </property>
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="tickPosition">
                 <enum>QSlider::TicksAbove</enum>
                </property>
               </widget>
              </item>
              <item row="0" column="2" colspan="2">
               <widget class="QLabel" name="labelFrontArmor">
                <property name="sizePolicy">
                 <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
                  <horstretch>0</horstretch>
                  <verstretch>0</verstretch>
                 </sizepolicy>
                </property>
                <property name="minimumSize">
                 <size>
                  <width>18</width>
                  <height>0</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>18</width>
                  <height>16777215</height>
                 </size>
                </property>
                <property name="font">
                 <font>
                  <pointsize>8</pointsize>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Currently set front armor</string>
                </property>
                <property name="text">
                 <string>0</string>
                </property>
                <property name="alignment">
                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                </property>
               </widget>
              </item>
              <item row="0" column="4">
               <widget class="QLabel" name="labelMaxFrontArmor">
                <property name="sizePolicy">
                 <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
                  <horstretch>0</horstretch>
                  <verstretch>0</verstretch>
                 </sizepolicy>
                </property>
                <property name="minimumSize">
                 <size>
                  <width>26</width>
                  <height>0</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>26</width>
                  <height>16777215</height>
                 </size>
                </property>
                <property name="font">
                 <font>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Maximum front armor</string>
                </property>
                <property name="text">
                 <string>/100</string>
                </property>
               </widget>
              </item>
              <item row="1" column="0">
               <widget class="ArmorTogglingLabel" name="labelRearArmorText">
                <property name="font">
                 <font>
                  <pointsize>8</pointsize>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Rear armor. Click to switch between max <-> 0 armor</string>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="pixmap">
                 <pixmap>GUI/ArmorRear.PNG</pixmap>
                </property>
               </widget>
              </item>
              <item row="1" column="1">
               <widget class="MirroredSlider" name="rearArmorSlider">
                <property name="font">
                 <font>
                  <pointsize>8</pointsize>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Slider for armor setup</string>
                </property>
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="tickPosition">
                 <enum>QSlider::TicksAbove</enum>
                </property>
               </widget>
              </item>
              <item row="1" column="2">
               <widget class="QLabel" name="labelRearArmor">
                <property name="sizePolicy">
                 <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
                  <horstretch>0</horstretch>
                  <verstretch>0</verstretch>
                 </sizepolicy>
                </property>
                <property name="minimumSize">
                 <size>
                  <width>18</width>
                  <height>0</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>18</width>
                  <height>16777215</height>
                 </size>
                </property>
                <property name="font">
                 <font>
                  <pointsize>8</pointsize>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Currently set rear armor</string>
                </property>
                <property name="text">
                 <string>0</string>
                </property>
                <property name="alignment">
                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                </property>
               </widget>
              </item>
              <item row="1" column="3" colspan="2">
               <widget class="QLabel" name="labelMaxRearArmor">
                <property name="sizePolicy">
                 <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
                  <horstretch>0</horstretch>
                  <verstretch>0</verstretch>
                 </sizepolicy>
                </property>
                <property name="minimumSize">
                 <size>
                  <width>28</width>
                  <height>0</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>28</width>
                  <height>16777215</height>
                 </size>
                </property>
                <property name="font">
                 <font>
                  <weight>50</weight>
                  <bold>false</bold>
                 </font>
                </property>
                <property name="toolTip">
                 <string>Maximum rear armor</string>
                </property>
                <property name="text">
                 <string>/100</string>
                </property>
               </widget>
              </item>
              <item row="2" column="0" colspan="5">
               <layout class="QHBoxLayout" name="hardpointsLayout">
                <property name="spacing">
                 <number>1</number>
                </property>
                <item>
                 <spacer name="horizontalSpacer_3">
                  <property name="orientation">
                   <enum>Qt::Horizontal</enum>
                  </property>
                  <property name="sizeHint" stdset="0">
                   <size>
                    <width>0</width>
                    <height>20</height>
                   </size>
                  </property>
                 </spacer>
                </item>
                <item>
                 <widget class="QLabel" name="labelBallisticHardpointsLeft">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>10</string>
                  </property>
                  <property name="alignment">
                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMaxBallisticHardpoints">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>/10</string>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelBallisticIcon">
                  <property name="minimumSize">
                   <size>
                    <width>0</width>
                    <height>26</height>
                   </size>
                  </property>
                  <property name="font">
                   <font>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="toolTip">
                   <string><html><head/><body><p>Ballistic hardpoints</p></body></html></string>
                  </property>
                  <property name="text">
                   <string/>
                  </property>
                  <property name="pixmap">
                   <pixmap>GUI/BallisticHardpoint.png</pixmap>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelEnergyHardpointsLeft">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>10</string>
                  </property>
                  <property name="alignment">
                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMaxEnergyHardpoints">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>/10</string>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelEnergyIcon">
                  <property name="enabled">
                   <bool>true</bool>
                  </property>
                  <property name="minimumSize">
                   <size>
                    <width>0</width>
                    <height>26</height>
                   </size>
                  </property>
                  <property name="font">
                   <font>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="toolTip">
                   <string><html><head/><body><p>Energy hardpoints</p></body></html></string>
                  </property>
                  <property name="text">
                   <string/>
                  </property>
                  <property name="pixmap">
                   <pixmap>GUI/EnergyHardpoint.png</pixmap>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMissileHardpointsLeft">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>10</string>
                  </property>
                  <property name="alignment">
                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMaxMissileHardpoints">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>/10</string>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMissileIcon">
                  <property name="minimumSize">
                   <size>
                    <width>0</width>
                    <height>26</height>
                   </size>
                  </property>
                  <property name="font">
                   <font>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="toolTip">
                   <string><html><head/><body><p>Missile hardpoints</p></body></html></string>
                  </property>
                  <property name="text">
                   <string/>
                  </property>
                  <property name="pixmap">
                   <pixmap>GUI/MissileHardpoint.png</pixmap>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelSupportHardpointsLeft">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>10</string>
                  </property>
                  <property name="alignment">
                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMaxSupportHardpoints">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>/10</string>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelSupportIcon">
                  <property name="minimumSize">
                   <size>
                    <width>0</width>
                    <height>26</height>
                   </size>
                  </property>
                  <property name="font">
                   <font>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="toolTip">
                   <string><html><head/><body><p>Support hardpoints</p></body></html></string>
                  </property>
                  <property name="text">
                   <string/>
                  </property>
                  <property name="pixmap">
                   <pixmap>GUI/SupportHardpoint.png</pixmap>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelOmniHardpointsLeft">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>10</string>
                  </property>
                  <property name="alignment">
                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelMaxOmniHardpoints">
                  <property name="font">
                   <font>
                    <pointsize>10</pointsize>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="text">
                   <string>/10</string>
                  </property>
                 </widget>
                </item>
                <item>
                 <widget class="QLabel" name="labelOmniIcon">
                  <property name="minimumSize">
                   <size>
                    <width>0</width>
                    <height>26</height>
                   </size>
                  </property>
                  <property name="font">
                   <font>
                    <weight>50</weight>
                    <bold>false</bold>
                   </font>
                  </property>
                  <property name="toolTip">
                   <string><html><head/><body><p>Omni-weapon hardpoints</p></body></html></string>
                  </property>
                  <property name="text">
                   <string/>
                  </property>
                  <property name="pixmap">
                   <pixmap>GUI/OmniHardpoint.png</pixmap>
                  </property>
                 </widget>
                </item>
                <item>
                 <spacer name="horizontalSpacer_4">
                  <property name="orientation">
                   <enum>Qt::Horizontal</enum>
                  </property>
                  <property name="sizeHint" stdset="0">
                   <size>
                    <width>0</width>
                    <height>20</height>
                   </size>
                  </property>
                 </spacer>
                </item>
               </layout>
              </item>
             </layout>
            </widget>
           </item>
           <item>
            <widget class="InventoryWidget" name="inventory" native="true">
             <property name="sizePolicy">
              <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
             <property name="font">
              <font>
               <pointsize>8</pointsize>
              </font>
             </property>
            </widget>
           </item>
           <item>
            <layout class="QHBoxLayout" name="horizontalLayout">
             <item>
              <spacer name="horizontalSpacer">
               <property name="orientation">
                <enum>Qt::Horizontal</enum>
               </property>
               <property name="sizeHint" stdset="0">
                <size>
                 <width>40</width>
                 <height>20</height>
                </size>
               </property>
              </spacer>
             </item>
             <item>
              <widget class="QPushButton" name="removeAllButton">
               <property name="toolTip">
                <string><html><head/><body><p>Removes all equipment from the location</p></body></html></string>
               </property>
               <property name="text">
                <string>Strip stuff</string>
               </property>
              </widget>
             </item>
             <item>
              <spacer name="horizontalSpacer_2">
               <property name="orientation">
                <enum>Qt::Horizontal</enum>
               </property>
               <property name="sizeHint" stdset="0">
                <size>
                 <width>40</width>
                 <height>20</height>
                </size>
               </property>
              </spacer>
             </item>
            </layout>
           </item>
          </layout>
         </widget>
         <customwidgets>
          <customwidget>
           <class>InventoryWidget</class>
           <extends>QWidget</extends>
           <header>inventorywidget.h</header>
           <container>1</container>
          </customwidget>
          <customwidget>
           <class>MirroredSlider</class>
           <extends>QSlider</extends>
           <header>mirroredslider.h</header>
          </customwidget>
          <customwidget>
           <class>TwoColoredGroupBox</class>
           <extends>QGroupBox</extends>
           <header>twocoloredgroupbox.h</header>
           <container>1</container>
          </customwidget>
          <customwidget>
           <class>ArmorTogglingLabel</class>
           <extends>QLabel</extends>
           <header>armortogglinglabel.h</header>
          </customwidget>
         </customwidgets>
         <resources/>
         <connections/>
        </ui>
        

        And the main widget; it is too large to paste there on forum due to 32k chars limit - https://filetransfer.io/data-package/B5Nfcbd3#link

        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