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. [SOLVED]: Hint about QSplitter

[SOLVED]: Hint about QSplitter

Scheduled Pinned Locked Moved Solved General and Desktop
qsplittercollapse
4 Posts 2 Posters 2.3k Views
  • 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.
  • M Offline
    M Offline
    Mark81
    wrote on 7 Nov 2015, 17:14 last edited by Mark81
    #1

    Hello!
    I'm looking for some hints about the usage of QSplitter, from the user-experience perspective.

    • it's possible to show a default "grab" simbol (i.e. the classic 3 dots) to inform the user this is a resizable item, and not just a frame?

    • how to inform the user that "under here" there is a collapsed child? Well, the first issue is to detect which child is collapsed...it's not so trivial. Then I could of course use any widget to display a message, but I'm looking for a standard solution as you can see in any application which uses this type of items.

    It's ok to use a third-part widget if it's worth to...

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Nov 2015, 21:52 last edited by
      #2

      Hi,

      You can create you own subclass of QSplitterHandle and give it the look you would like.

      Do you have an example of such "hint" for collapsed widgets ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mark81
        wrote on 18 Nov 2015, 08:52 last edited by Mark81
        #3

        I apologize for the delay!
        In every application with splitter/dockable/collapsable widget there is a something which inform the user that "here" there's something hidden.

        In most applications (i.e. QtCreator, AVRStudio, Android Studio, just to say some) there is a "status bar" placed on the edge of the window where the widgets will collapse. So the user easily can show/hide them, and know they are there if not visible yet.

        I know I can do all this stuff manually (but someone should explain me how to RELIABLY know if a QSplitter is collapsed regardless its location) anyway I hope there are some helps in the QtFramework.

        EDIT: I've just seen the QDockWidget is closer to my needs. Anyway I still need to manully place something (i.e. a button) when the widget is closed to allow the users to reopen it.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mark81
          wrote on 18 Nov 2015, 09:22 last edited by
          #4

          I've just seen the QDockWidget is closer to my needs. Anyway I still need to manully place something (i.e. a button) when the widget is closed to allow the users to reopen it.

          It's quite simple, though. Just adding a toolbar and use the toggleViewAction() did the trick.

          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