Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add Qchart inside a tab widget in pyqt5?
Forum Update on Monday, May 27th 2025

How to add Qchart inside a tab widget in pyqt5?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 540 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AyushGhosh
    wrote on 1 Sept 2020, 13:28 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Sept 2020, 18:31 last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply 2 Sept 2020, 05:35
      1
      • S SGaist
        1 Sept 2020, 18:31

        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.

        A Offline
        A Offline
        AyushGhosh
        wrote on 2 Sept 2020, 05:35 last edited by
        #3

        @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.

        J 1 Reply Last reply 3 Sept 2020, 09:16
        0
        • A AyushGhosh
          2 Sept 2020, 05:35

          @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.

          J Offline
          J Offline
          JonB
          wrote on 3 Sept 2020, 09:16 last edited by
          #4

          @AyushGhosh
          To do any UI programming with Qt, do you know how to add a QWidget? How to add a QLayout? Have you followed any minimal examples?

          1 Reply Last reply
          0

          1/4

          1 Sept 2020, 13:28

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved