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. Hiding the System Menu Icon of QMdiSubWindow
QtWS25 Last Chance

Hiding the System Menu Icon of QMdiSubWindow

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 5.4k 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.
  • R Offline
    R Offline
    revellix
    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
    • R Offline
      R Offline
      rokemoon
      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
        • M Offline
          M Offline
          miroslav
          wrote on last edited by
          #4

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

          Mirko Boehm | mirko@kde.org | KDE e.V.
          FSFE Fellow
          Qt Certified Specialist

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