Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFrame objects, added after the whole application has started, that look as if they are disabled
Qt 6.12 LTS is out! See what's new in the release blog

QFrame objects, added after the whole application has started, that look as if they are disabled

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 312 Views 2 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.
  • G Offline
    G Offline
    giusdbg
    wrote on last edited by giusdbg
    #1

    Hi.

    After the application is fully started, a block (a QFrame object) is removed and then reinserted.

    There is configuration mask which allows to remove and add the various blocks.

    The code that adds the block is the same as it does when the application starts.

    Once the block is added, the information drawn above is not displayed and it is not possible to move the block.

    The block is the one to the right of each screen below.
    The one removed and reinserted is the one of the first screen without the 2200 in red).
    The second screen shows the fully functional block after starting the application.

    Does anyone have any idea what could be causing this problem?

    Screenshot_20230618_143822.png

    G 1 Reply Last reply
    0
    • G giusdbg

      Hi.

      After the application is fully started, a block (a QFrame object) is removed and then reinserted.

      There is configuration mask which allows to remove and add the various blocks.

      The code that adds the block is the same as it does when the application starts.

      Once the block is added, the information drawn above is not displayed and it is not possible to move the block.

      The block is the one to the right of each screen below.
      The one removed and reinserted is the one of the first screen without the 2200 in red).
      The second screen shows the fully functional block after starting the application.

      Does anyone have any idea what could be causing this problem?

      Screenshot_20230618_143822.png

      G Offline
      G Offline
      giusdbg
      wrote on last edited by
      #2

      @giusdbg Found.

      I have a number of object derivations from the QFrame object, to prevent connects on child objects from failing, I have to use the setParent( parent ) function.

      Apparently I was using it in a gray and unexpected area in the construction of qt objects and events.

      By moving the setParent to the end of each final derived object and also placing the call to show(), it works much better.
      (waiting to be able to fix the connect and use the qt in a more orthodox way).

      1 Reply Last reply
      0
      • G giusdbg has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved