How to add Qchart inside a tab widget in pyqt5?
-
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.
@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.
@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?