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 snap QMdiSubWindow to corners/edges of QMdiArea
Forum Updated to NodeBB v4.3 + New Features

How to snap QMdiSubWindow to corners/edges of QMdiArea

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 473 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.
  • S Offline
    S Offline
    sammonius
    wrote on last edited by
    #1

    I wanted to create a program that would boot from a USB in fullscreen, but It would use a QMdiArea with a toolbar under it to appear like a custom operating system. I'm guessing a native solution doesn't exist, so I want to know how I could subclass QMdiArea/QMdiSubWindow to make this possible. Thanks!

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you want OS like user interface, did you consider using the Qt Wayland module ? That would give you greater flexibility.

      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
      • S Offline
        S Offline
        sammonius
        wrote on last edited by sammonius
        #3

        @SGaist Thanks for the reply. I hadn't heard of this module before.

        I wanted to use X11 for the program, and I don't think that this small feature requires switching to a whole new display server. I just wanted the windows to snap to borders like they do in real operating systems. The program I'm making is just a simple tool for manging hard drives (similar to the GParted bootable iso), so it doesn't need to look as realistic as an actual OS.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          If you have X11 running then you have a real OS ? You could use a minimal window manager that fits your need.

          You can also use one of the other backend like LinuxFB that do not require X11 running.

          By the way are you looking for a widget only solution or maybe Qt Quick ?

          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
          • S Offline
            S Offline
            sammonius
            wrote on last edited by
            #5

            @SGaist The main reason I was trying to avoid a window manager was to save storage space, so I'll look into the framebuffer since it would mean that I could even leave out X11 itself.

            But this takes us back the my original question, since I still don't know how to make the subwindows snap to edges on the framebuffer just like I didn't with X11.

            RokeJulianLockhartR 1 Reply Last reply
            0
            • S sammonius

              @SGaist The main reason I was trying to avoid a window manager was to save storage space, so I'll look into the framebuffer since it would mean that I could even leave out X11 itself.

              But this takes us back the my original question, since I still don't know how to make the subwindows snap to edges on the framebuffer just like I didn't with X11.

              RokeJulianLockhartR Offline
              RokeJulianLockhartR Offline
              RokeJulianLockhart
              wrote on last edited by RokeJulianLockhart
              #6

              @sammonius, I'm struggling with this, too. Have you ascertained whether a solution exists? Thus far, I've been forced to resort to QDockWidgets instead. Perhaps we'll need to request it at JIRA.

              When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

              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