[PyQt] How to have a menubar and tabs in the same app?

Maurizio Berti maurizio.berti at gmail.com
Wed Aug 22 15:52:58 BST 2018


What do you mean by "tabs"?
Can't you just use a QTabWidget (and set it as centralWidget, if you are
using a QMainWindow and are not using QtDesigner)?

Il giorno mer 22 ago 2018 alle ore 16:19 inhahe <inhahe at gmail.com> ha
scritto:

> I'm sure the solution is simple, but I can't figure it out. It seems that
> no matter what I do I can't have a menubar and tabs in the same PyQt4
> window. Can someone create a minimal example for me that does both? Thanks.
>
> (I'm using PyQt4 and Python 2.7 because I'm working on a project that I
> started many years ago.)
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt



-- 
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180822/aec7f941/attachment.html>


More information about the PyQt mailing list