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. Support of Custom Property in Custom Widget in Designer
Forum Updated to NodeBB v4.3 + New Features

Support of Custom Property in Custom Widget in Designer

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

    Hi,
    is there any possibility to add/display a custom property in Qt designer for a custom widget.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      What do you mean specifically by a custom property in this case? Do you mean the properties you have added yourself, or do you mean a property with a non-standard type?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        walteste
        wrote on last edited by
        #3

        Let's say i have the following class:
        @
        class TextPair {
        int number;
        QString text;
        }
        @

        The custom widget has a property of type TextPair.

        All i want is in the property editor of that widget a tree like setting:
        TextPair

        • number
        • text

        It should be very similar to a QString or a QRect property.

        Edit: please use @ tags around code sections; Andre

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          As far as I know, that is not possible unfortunately.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            walteste
            wrote on last edited by
            #5

            Unfortunately such a great feature is missing.

            Anyway, thanks a lot Andre.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              Note that that doesn't mean that your widget can't have such a property. Just that you can't set it directly from designer.

              1 Reply Last reply
              0
              • W Offline
                W Offline
                walteste
                wrote on last edited by
                #7

                Thanks for the additional info, but I require it available through the designer for the design team.
                [quote author="Andre" date="1363768640"]Note that that doesn't mean that your widget can't have such a property. Just that you can't set it directly from designer. [/quote]

                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