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. how to display the icon app on the taskbar when using the qt::tool flag?

how to display the icon app on the taskbar when using the qt::tool flag?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 447 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
    argaiv
    wrote on last edited by
    #1

    Hi, I try to do an app on windows 10 that has all the characteristic of the qt::tool but I need it to display its icon on the taskbar.
    If someone could help me that would be highly appreciated

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

      Hi and welcome to devnet,

      Did you already check the Window Flags Example ? You might be able to get the result you want without the Tool flag and thus keep the normal handling of your application by the taskbar.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        argaiv
        wrote on last edited by
        #3

        Hi first of all thank you for the quick answer!
        I checked the window flag example and it did help me understand the hints a little better but I still have not been able get what I want.
        My problem is that I want the window to be just the size of my unique toolbutton.
        I've tried different combination of flag and for now the best is Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowCloseButtonHint|Qt::WindowTitleHint|Qt::WindowStaysOnTopHint
        but even then the window is like twice as large as it could be...
        if I remove Qt::WindowTitleHint then it becomes the right size but the title bar disapears along with the close button :p

        I've done some test calling size() and frameSize() with qDebug() with the Qt::Tool and the Qt::Window flag and the results are the same on both... I've also tried calling setGeometry but obviously for the system it is already that size so it haven't done anything.

        I don't know what else to do loll

        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