Custom window frame - is this possible?



  • 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



  • @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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.