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. Remove window Icon
Forum Update on Monday, May 27th 2025

Remove window Icon

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 809 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.
  • A Offline
    A Offline
    Akshat
    wrote on last edited by
    #1

    I want to remove the default icon in qt window.
    I have tried setting flags like this->setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint) this removes the icon but changes the default close button on the tip right and also deactivate the window.
    In order to keep the window activated if i use activate window then my qwidget gets hidden.

    I also tried setting an empty logo /transparent logo but there is space left before the title .
    Is there any way to remove the logo retaining the title and close button??

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

      Hi
      As far as I know, its not possible as its an OS thing and outside of Qt.
      But try the Windows Flag example
      https://doc.qt.io/qt-5/qtwidgets-widgets-windowflags-example.html

      and see if there is a combi that suits your requirements.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved