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. Does Qt have some kind of "Dock Indicator"?
Forum Updated to NodeBB v4.3 + New Features

Does Qt have some kind of "Dock Indicator"?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.4k 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.
  • A Offline
    A Offline
    Adelost
    wrote on last edited by
    #1

    Does Qt have some kind of Dock Indicator?

    In Source Film Maker (made using Qt) you get these "Dock Indicator" when moving windows. Any idea how to replicate?

    !http://i.imgur.com/obcJl1i.png(Qt Dock Indicators)!

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bodzio131
      wrote on last edited by
      #2

      In company which I work for we did similar thing by showing semi-transparent image (with dock-helper indicator) over whole application.

      1 Reply Last reply
      0
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        when you start a window drag show your "DragOverlay" widget (derived from QWidget).
        In the dragMove handlers of the "DragOverlay" widget you need to implement the logic for the indicator handling and save them to a list.
        In the paintEvent you then need to do the painting of your stored indicators. In the dropEvent just hide the overlay.

        You need also to make sure that the overlay gets also resized when it's parent gets resized and make sure that it's always the topmost widget in the child-stack.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        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