Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Container without window decoration on top of mainwindow

    General and Desktop
    2
    3
    874
    Loading More Posts
    • 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.
    • K
      khajvah last edited by

      Hello people,

      I am new to Qt (2-3 days). I have created a simple UI for my converter application which uses dialogs to operate. I want to use some kind of container which operates like a dialog but has no window decoration and opens as part of mainwindow (for example, when the user moves the window, the container should move with it). I have attached a picture of that kind of application I found online :)
      http://www.stefanseiz.com/images/nnw-shortcut.jpg --- link to an image

      1 Reply Last reply Reply Quote 0
      • jazzycamel
        jazzycamel last edited by

        The behaviour you describe (which is demonstrated in your example) is a MacOSX specific feature called a "Sheet". This functionality is default for modal, parented dialogs and message boxes in Qt on Mac. See "here":http://doc.qt.digia.com/qq/qq18-macfeatures.html for more information. For other platforms I believe you will have to implement the functionality yourself.

        Hope this helps ;o)

        For the avoidance of doubt:

        1. All my code samples (C++ or Python) are tested before posting
        2. As of 23/03/20, my Python code is formatted to PEP-8 standards using black from the PSF (https://github.com/psf/black)
        1 Reply Last reply Reply Quote 0
        • K
          khajvah last edited by

          [quote author="jazzycamel" date="1376563996"]The behaviour you describe (which is demonstrated in your example) is a MacOSX specific feature called a "Sheet". This functionality is default for modal, parented dialogs and message boxes in Qt on Mac. See "here":http://doc.qt.digia.com/qq/qq18-macfeatures.html for more information. For other platforms I believe you will have to implement the functionality yourself.

          Hope this helps ;o)[/quote]

          I thought about custom implementation and could only think of adding widget "Widget" and promoting it to smth,and then showing and hiding . Is it possible in that way?(I am on linux) and then showing and hiding

          1 Reply Last reply Reply Quote 0
          • First post
            Last post