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. Develop new Qt GUI controls
Forum Updated to NodeBB v4.3 + New Features

Develop new Qt GUI controls

Scheduled Pinned Locked Moved General and Desktop
5 Posts 5 Posters 2.7k Views 1 Watching
  • 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 Offline
    Q Offline
    qtnamco
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      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
      0
      • V Offline
        V Offline
        vezprog
        wrote on last edited by
        #3

        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
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          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
          0
          • V Offline
            V Offline
            veeraps
            wrote on last edited by
            #5

            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
            0

            • Login

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