How to add Qchart inside a tab widget in pyqt5?
-
wrote on 1 Sept 2020, 13:28 last edited by
Hi everyone, I'm new on this forum and pretty new to qt also. I'm creating a simple UI using PyQT5 in which I have two tabs Graph and Data. I want to add a bar chart inside the Graph Tab. How can I do so?
-
Hi and welcome to devnet,
From your description, you should use a QWidget with a QHBoxLayout or a QVBoxLayout, then put your two widgets in the layout of your choice and then set that widget on the tab.
-
Hi and welcome to devnet,
From your description, you should use a QWidget with a QHBoxLayout or a QVBoxLayout, then put your two widgets in the layout of your choice and then set that widget on the tab.
wrote on 2 Sept 2020, 05:35 last edited by@SGaist Thanks for the reply. Can you give me an example script for the same? That would be very helpful. I'm working on windows and Python 3.6.
-
@SGaist Thanks for the reply. Can you give me an example script for the same? That would be very helpful. I'm working on windows and Python 3.6.
wrote on 3 Sept 2020, 09:16 last edited by@AyushGhosh
To do any UI programming with Qt, do you know how to add aQWidget
? How to add aQLayout
? Have you followed any minimal examples?
1/4