Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hiding the System Menu Icon of QMdiSubWindow
Qt 6.12 LTS is out! See what's new in the release blog

Hiding the System Menu Icon of QMdiSubWindow

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 6.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Dear Community,

    how can one hide or delete the Icon of the QMdiSubWindow...

    I don't want to have this one :

    !http://i53.tinypic.com/2agufrb.png()!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      windowIcon : QIcon
      This property holds the widget's icon
      This property only makes sense for windows. If no icon has been set, windowIcon() returns the application icon (QApplication::windowIcon()).
      Access functions:
      @QIcon windowIcon () const
      void setWindowIcon ( const QIcon & icon )
      bool isWindow () const@

      Maybe this will help you.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tyapkov
        wrote on last edited by
        #3

        One of the possible ways is to create an empty QIcon and then call SetWindowIcon of the QMdiSubWindow

        @setWindowIcon(QIcon(""));@

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          setWindowIcon(QIcon()) is probably better, since it creates a null icon.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tyapkov
            wrote on last edited by
            #5

            If to use the null icon then the standard Qt icon will be set on the QMdiSubWindow. Author in opposite wants to hide it.

            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