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 expand corner widget?
Qt 6.11 is out! See what's new in the release blog

How to expand corner widget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.4k Views 1 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.
  • N Offline
    N Offline
    nen777w
    wrote on last edited by
    #1

    Hi!
    I need to insert corner widget into menu bar, and I want that corner widget to be expanded on all available menu bar area, but full menu always should be visible.
    The corner widget and spacer inside has horizontal policy: Expanding
    http://www.codijy.com/4qt/corner_widget.png
    The menuBar has a horizontal policy: Minimum
    But result is following:
    http://www.codijy.com/4qt/result_0.png
    or
    http://www.codijy.com/4qt/result_1.png

    Is it possible?

    The test project code: http://www.codijy.com/4qt/QtTest.zip

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

      Hi,

      From a quick look at QMenBar's implementation, it doesn't seem that you'll be able achieve what you want out of the box. Especially on OS X.

      Out of curiosity, what do you want to do with that corner widget ?

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        From a quick look at QMenBar's implementation, it doesn't seem that you'll be able achieve what you want out of the box. Especially on OS X.

        Out of curiosity, what do you want to do with that corner widget ?

        N Offline
        N Offline
        nen777w
        wrote on last edited by
        #3

        @SGaist
        I know about OSX, and interface will be a little bit different on Windows and OSX platfom.

        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