Qt Forum

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

    Unsolved Display QWidgets behind a QToolBar

    General and Desktop
    1
    1
    61
    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.
    • dublin19
      dublin19 last edited by

      I try to create an application with a transparent QToolBar in the titlebar. This works with some modifications to the window itself by using some Objective-C. Also with setUnifiedTitleAndToolBarOnMac() it looks just like what I wanted. Now there is a problem. I want to add a QGridLayout later on. And just like in the new Photos app on iPadOS I want that the widgets go behind the toolbar. The transparent style would be probably achievable by styling the QToolBar (but this is a problem I can work on). My question is now, is there any possible way to overlap two widgets or send widgets behind any other widget? I could also work with a QVBoxLayout, but I don't know how to set some widgets behind any other widget (or layout).

      What I try to achieve is the following:

      My current approach is this:

      I heard about stackUnder() but this does not work.

      I hope I got my question clear, its my first time posting here.

      Thanks!

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