My extended controls
-
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 -
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
-
and is possible show dialog at design time like c#?
thanks -
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).