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. Custom window frame - is this possible?
QtWS25 Last Chance

Custom window frame - is this possible?

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

    Hi Folks,

    I'm just starting with qt and c++ so this is a bit advanced for me at this stage. But, does anyone know how I might do this i.e. add an additional icon to the top of a window. In this case the window has a cog icon.

    0_1531075606622_windowframe.PNG

    I found some examples where WindowFlags were being set to turn off Maximise, Minimise etc but I could not see how to add a new icon.

    Thanks,

    Tim

    T 1 Reply Last reply
    0
    • A AquaGuy

      Hi Folks,

      I'm just starting with qt and c++ so this is a bit advanced for me at this stage. But, does anyone know how I might do this i.e. add an additional icon to the top of a window. In this case the window has a cog icon.

      0_1531075606622_windowframe.PNG

      I found some examples where WindowFlags were being set to turn off Maximise, Minimise etc but I could not see how to add a new icon.

      Thanks,

      Tim

      T Offline
      T Offline
      Tirupathi Korla
      wrote on last edited by
      #2

      @AquaGuy AFAIK, the window frame color and buttons are based on the OS theme. We may not have access to it using Qt APIs. You can achieve it by hiding the window frame and creating your own minimize, maximize and close buttons along with title bar.

      -Tiruapthi

      1 Reply Last reply
      2

      • Login

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