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. How to make QWidgets overlapping?
Qt 6.11 is out! See what's new in the release blog

How to make QWidgets overlapping?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.8k 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.
  • J Offline
    J Offline
    jammy
    wrote on last edited by
    #1

    Hi all. Sorry about my weak english, (please check my grammatical errors).
    The subject is:
    There is a parent QWidget which contains two child widgets called A and B.
    How I can make widget A to overlap B (partially, not completely)?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Just set the children widgets geometries explicitely :)

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jammy
        wrote on last edited by
        #3

        thanks, but it is not suitable. Child widgets A and B may be QDockWidget or QMdiSubWindow instanses.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          I'm not sure why then you want such a thing -- anyway, QDockWidget geometries are managed by the QMainWindow inner layouting system. QMdiSubWindows geometries should instead be manageable by you.

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jammy
            wrote on last edited by
            #5

            In fact i want to create a special menubar for my QMainWindow instance.
            Menubar should be shown when mouse moving on his header and should be hidden when mouse cursor leaves it. I cannot use hide() method of the internal QMenuBar widget, because other widgets automatically are moved above. I want other widgets to be at the same place.

            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