Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qmenubar tittle issue
Qt 6.12 LTS is out! See what's new in the release blog

Qmenubar tittle issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.0k Views
  • 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.
  • O Offline
    O Offline
    ozie
    wrote on last edited by
    #1

    Hi all,

    When i try to add an icon to menubar, title is visible i see only icon how can i fix this ?

    Christian EhrlicherC 1 Reply Last reply
    0
    • O ozie

      Hi all,

      When i try to add an icon to menubar, title is visible i see only icon how can i fix this ?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @ozie said in Qmenubar tittle issue:

      When i try to add an icon to menubar, title is visible i see only icon how can i fix this ?

      How / where do you set an icon to? Please provide some code.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • O Offline
        O Offline
        ozie
        wrote on last edited by
        #3

        I set on .ui file like this
        resim_2023-01-06_123458855.png

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So you set an icon to a QMenu, not a QMenuBar.
          Then it depends on the style you use if the icon, the icon + text (default) or only the text is shown. Please post how it looks for you.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • O Offline
            O Offline
            ozie
            wrote on last edited by
            #5

            resim_2023-01-06_155351972.png
            If i deleted icon looks like above,else looks like below
            Ekran görüntüsü 2023-01-06 155301.png

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you use some kind of css styling?
              A QMenu normally looks like this: https://doc.qt.io/qt-6/qmenu.html#details - yours looks strange.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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
              • Unsolved