Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to add Qchart inside a tab widget in pyqt5?

    General and Desktop
    3
    4
    327
    Loading More Posts
    • 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
      AyushGhosh 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?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 1
        • A
          AyushGhosh @SGaist 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.

          JonB 1 Reply Last reply Reply Quote 0
          • JonB
            JonB @AyushGhosh last edited by

            @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 Reply Quote 0
            • First post
              Last post