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. Problem with Menubar
Qt 6.11 is out! See what's new in the release blog

Problem with Menubar

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.1k 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.
  • H Offline
    H Offline
    HTWAMD
    wrote on last edited by
    #1

    Hey,

    I set the background color of my window to white. If I open now the Menubar and move the mouse over one item, it's not possible to read the entry anymore...
    Here is a picture of the problem:
    Menubar picture

    I just changed the MainWindow stylesheet with background-color: white.

    jsulmJ 1 Reply Last reply
    0
    • H HTWAMD

      Hey,

      I set the background color of my window to white. If I open now the Menubar and move the mouse over one item, it's not possible to read the entry anymore...
      Here is a picture of the problem:
      Menubar picture

      I just changed the MainWindow stylesheet with background-color: white.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @HTWAMD Did you try to set the background colour for your menu bar?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #3

        @HTWAMD said:

        background-color: white.

        that means for all widgets including the menus

        stylesheets are cascading
        for ONLY mainwindow u will use
        QMainWindow { background-color: white}

        http://doc.qt.io/qt-5/stylesheet.html

        H 1 Reply Last reply
        2
        • mrjjM mrjj

          @HTWAMD said:

          background-color: white.

          that means for all widgets including the menus

          stylesheets are cascading
          for ONLY mainwindow u will use
          QMainWindow { background-color: white}

          http://doc.qt.io/qt-5/stylesheet.html

          H Offline
          H Offline
          HTWAMD
          wrote on last edited by
          #4

          @mrjj Thanks a lot, it's working now!

          mrjjM 1 Reply Last reply
          1
          • H HTWAMD

            @mrjj Thanks a lot, it's working now!

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @HTWAMD
            super :)
            so you can use name (to target one special) or class types to specify
            what object that it should affect.

            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