Pyqt tabs like in Google Chrome

I would like my pyqt applications to have tabs in the menu bar, e.g. in Google Chrome :)

Any suggestions or a simple example of how to do this?

I found the appropriate link:
- http://ivan.fomentgroup.org/blog/2009/03/29/instant-chrome/

+3
source share
3 answers

To do this, you need to use Qt.FramelessWindowHint, and then create your own Max, Min, Close buttons as a widget and add them there. I have a good working set for these types of programs: http://traipse.assembla.com/spaces/ghostqt

resizeEvent, . , , , Qt.FramelessWindowHint ; Chrome.

, ?

+3

, QWindow, QTabBar ( QMenuBar), QTabWidget .

+2

:

  • (FramelessWindowHint)
  • .. ( , )

And all that was done in Webbie (the link you provided) :)

+2
source

Source: https://habr.com/ru/post/1762943/


All Articles