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?

How to add Qchart inside a tab widget in pyqt5?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 531 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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      1
      • SGaistS SGaist

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

        JonBJ 1 Reply Last reply
        0
        • A AyushGhosh

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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on 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

          • Login

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