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

inhahe inhahe at gmail.com
Wed Aug 22 20:13:34 BST 2018


Thanks, I got it now.


On Wed, Aug 22, 2018 at 10:54 AM Maurizio Berti <maurizio.berti at gmail.com>
wrote:

> 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/1463b2cb/attachment.html>


More information about the PyQt mailing list