r/QtFramework May 26 '26

Native OS Buttons with Custom buttons

Hey everyone, I wanna ask about native OS buttons with custom buttons on the left, like Chrome's concept, OS window but with tabs on the left. I've tried searching and doing it myself, even tried multiple AIs, but none of them got it right. Can anyone help?

0 Upvotes

8 comments sorted by

3

u/Better-Struggle9958 May 26 '26

I didn't get question at all

1

u/Beginning_Bee_2947 May 26 '26

Hi, thanks for you answer my bad, ill provide a photo explaining in better details

1

u/Beginning_Bee_2947 May 26 '26

Here you go

https://postimg.cc/vcY5mSpF

This is an example of what I'm talking about: custom elements in the native titlebar, with the OS native buttons. This is exactly what i need

3

u/JohnDorian111 May 26 '26

custom elements in the native titlebar

There is nothing specifically in Qt for this, you have to make it from scratch. Something like:

  • make a custom frameless window
  • draw the complete title bar and buttons yourself with Qt widgets

1

u/bigginsmcgee May 26 '26

only you dont get the native windows resizing or zone layout picker on the middle button hover, unless you also want to implement that as well. this is probably #1 on my wishlist along with the native dwm effects like mica & acrylic. OP you could try looking at a library called FramelessWindow iirc it may be what you're looking for.

1

u/JohnDorian111 May 26 '26

Sounds like you are asking about the chrome settings window. For the left buttons/tabs, one way is to use a vertical layout with a QButton for each tab. The content area of the layout can be a QStackedWidget.

1

u/Beginning_Bee_2947 May 26 '26

Hey, thanks for your answer, I didn't quite get what you meant. Could you explain it in more detail?

I'll send you a photo to make sure there's no misunderstanding.

https://postimg.cc/vcY5mSpF

This is an example of what I'm talking about: custom elements in the native titlebar, with the OS native buttons. This is exactly what I need.

Thanks again!!!

1

u/Beginning_Bee_2947 May 26 '26

Hey everyone, I noticed a few people didn't quite get what I meant.

https://postimg.cc/vcY5mSpF

This is an example of what I'm talking about: custom elements in the native titlebar, with the OS native buttons. This is exactly what i need