Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. My extended controls
Forum Updated to NodeBB v4.3 + New Features

My extended controls

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 1 Posters 2.5k 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.
  • G Offline
    G Offline
    giuseppe500
    wrote on last edited by
    #1

    Hy ,
    i would create my own controls, and add it to the visual designer in vs 2010 with qt 4.7(if is possible)
    there are some documetation on how manage the properties of my object with the visual designer?
    thanks

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      If I understand you, you want to add your own widget into the designer.

      To do that, you need to create a designer plugin (see here: "http://doc.qt.nokia.com/4.7/designer-creating-custom-widgets.html":http://doc.qt.nokia.com/4.7/designer-creating-custom-widgets.html). For the properties of your widget, you need to use the Q_PROPERTY in your widget, and it will automatically appear in the designer.

      For example, if you have a property "title" (nothing to do with the member, which can be m_title), with "setTitle" as the setter and "title" as the getter, you'll write in your widget, just under Q_OBJECT:

      @Q_PROPERTY( QString title READ title WRITE title)@

      See here for more information: "http://doc.qt.nokia.com/4.7/qobject.html#Q_PROPERTY":http://doc.qt.nokia.com/4.7/qobject.html#Q_PROPERTY

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giuseppe500
        wrote on last edited by
        #3

        and is possible show dialog at design time like c#?
        thanks

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          I don't know anything about C#, what do you want to do?

          What I understand is you want to display a dialog to setup your widget in the designer. If it's the case, it's possible: "http://doc.qt.nokia.com/4.7/qdesignertaskmenuextension.html":http://doc.qt.nokia.com/4.7/qdesignertaskmenuextension.html

          See also the TicTacToe example in the designer (right click on the widget, you can edit the initial state).

          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