Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get the signal after the QSplitter move finished
Qt 6.12 LTS is out! See what's new in the release blog

How to get the signal after the QSplitter move finished

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 751 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.
  • HansonH Offline
    HansonH Offline
    Hanson
    wrote on last edited by Hanson
    #1

    Hi,I want to know is there a way to get the signal after the QSplitter move finished.I know there is a signal splitterMoved.But it emit every time the splitter move.And I just want to get the signal when the splitter move finished.
    Any help is appreciated!

    “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
    —— Martin Golding

    Christian EhrlicherC 1 Reply Last reply
    0
    • HansonH Hanson

      Hi,I want to know is there a way to get the signal after the QSplitter move finished.I know there is a signal splitterMoved.But it emit every time the splitter move.And I just want to get the signal when the splitter move finished.
      Any help is appreciated!

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I would override the mouseRelease event and emit a custom signal there.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      HansonH 1 Reply Last reply
      4
      • Christian EhrlicherC Christian Ehrlicher

        I would override the mouseRelease event and emit a custom signal there.

        HansonH Offline
        HansonH Offline
        Hanson
        wrote on last edited by
        #3

        @Christian-Ehrlicher But I found that it not trigger the mouseRelease event after drag the splitter and release the mouse button.

        “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
        —— Martin Golding

        Christian EhrlicherC 1 Reply Last reply
        0
        • HansonH Hanson

          @Christian-Ehrlicher But I found that it not trigger the mouseRelease event after drag the splitter and release the mouse button.

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Hanson said in How to get the signal after the QSplitter move finished:

          But I found that it not trigger the mouseRelease event

          It does for sure - please show us your code.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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
          • Unsolved