Qt Forum

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

    Develop new Qt GUI controls

    General and Desktop
    5
    5
    2429
    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.
    • Q
      qtnamco last edited by

      Hi everybody.
      i'm new in qt,
      and i think this very fantastic.
      Thanks for qt developers.

      My question is there some qt controls like QButton, QLabel, etc...

      Can i develop new qt GUI control, for example QAccordion control for example.
      how to do it, and from where can i read and learn it.

      Thanx.

      1 Reply Last reply Reply Quote 0
      • M
        MuldeR last edited by

        You can inherit from an existing control and overwrite methods to change/extend its functionality as needed.

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        1 Reply Last reply Reply Quote 0
        • V
          vezprog last edited by

          Subclass an object and make it your own. So create a class and inherit the object you want to customize, and overwrite the meathos and ect. ect. like MuldeR said.

          1 Reply Last reply Reply Quote 0
          • G
            giesbert last edited by

            If there is no control you want to extend, you have to subclass with QWidget.

            you can have a look at Qt examples, e.g. "the analog clock":http://qt-project.org/doc/qt-4.8/widgets-analogclock.html

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply Reply Quote 0
            • V
              veeraps last edited by

              This link may be useful as well - "Creating Custom Widgets for Qt Designer":http://qt-project.org/doc/qt-4.8/designer-creating-custom-widgets.html

              1 Reply Last reply Reply Quote 0
              • First post
                Last post