Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Title bar messing dialog layout



  • A form in QDesigner has a "groupbox" somehow attached to the top of the form .
    When I use layout "align to grid", bottom picture, it looks fine in QDesigner.
    When "run" it disappears, top picture , apparently covered by adjacent text widget and title bar.

    Is the problem with interaction of dialog title bar with group box?
    Or something else ?
    There is no visible dialog title bar in QDesigner.

    How do I fix this ?

    862fa9db-9d54-4c0f-b5a4-ad59350c2ac8-image.png

    397eefa6-22c9-456b-9ff9-16c81ad27062-image.png



  • ADDENDUM

    I have added "spacer" before and after the "group box" to find that the entire box is missing .

    34ac4acb-688c-4f9c-9f04-4aee33387308-image.png

    d176063e-978c-4818-9515-2f99faa52a67-image.png



  • SOLVED

    The items in group box are code controlled (normal ) and the box is build in code too which makes the box "invisible " as initially set in the example.
    Little confusing.
    The text is replaced during run , and the test copy does not obviously get replaced by original code.

    fa2794aa-a11b-4321-80ae-b903359dcce0-image.png


Log in to reply