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 a property manager or a command toolbar in Qt?
QtWS25 Last Chance

How to add a property manager or a command toolbar in Qt?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.1k 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.
  • B Offline
    B Offline
    BlazeRifted
    wrote on last edited by
    #1

    !http://help.solidworks.com/2013/English/SolidWorks/sldworks/aha1306857800020.image!

    Are there any functions related to the property manager and command manager features like in the Solidworks U.I. For my project I have been trying to make a UI like Solidworks and these are the only functions I don't know of. Are there anything similar for Qt? In general, what are functions that will lead to a features like in the image shown?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      From a quick glance, you could mimic the Property Manager with a QTabWidget containing a QTreeView/QTreeWidget.

      The Command Manager looks like a row of QToolButton objects.

      [quote]Are there anything similar for Qt? In general, what are functions that will lead to a features like in the image shown?[/quote]I recommend browsing the "list of available widgets":http://qt-project.org/doc/qt-5/widget-classes.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BlazeRifted
        wrote on last edited by
        #3

        Thanks for your help! Just another follow up question. Can the QToolWidgets be linked to a specific tab so if I click on one tab and if I click on another they bring up different buttons. Also in the property manager using the tab widgets can I add commands in the tree widgets?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          You're welcome :)

          Answers: Yes, and yes. You'll need to write custom C++ code to do that, of course!

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BlazeRifted
            wrote on last edited by
            #5

            Last follow up question. How do I set an icon to each feature like in the commands in the photo and is it possible to add a widget to a widget? Like can I make a Tab widget and add a table widget under it? Thanks in advance

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              [quote]How do I set an icon to each feature like in the commands in the photo[/quote]I recommend reading Qt's documentation. It is very comprehensive.

              Start with QToolButton::setIcon().

              [quote]is it possible to add a widget to a widget? Like can I make a Tab widget and add a table widget under it?[/quote]Yes. See "Layout Management":http://qt-project.org/doc/qt-5/layout.html

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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