PDA

View Full Version : custom widgets in qt creator 4.6



tentakel
2nd May 2010, 16:31
hello,

i want to create a custom widget, e.g. three buttons with defined behaviour.
but i definately do not know how to achieve this.

the qt creator provides "custom widget for qt 4 designer".
i have chosen it and positioned 3 buttons, but now..................?

after compiling, there are no errors, but the qt creator says there is no executable.
sure there is no main.c.
i want to create a dll to include the custom widget into another project.

please, help me.
i would like to create a custom widget, which is integrated in the qt creator.
the qt creator shall be used to create a dialog "easy and fast".
can anybody give me a tutorial - in his own words - how to do this in qt creator??

squidge
2nd May 2010, 16:44
Did you try the documentation? http://doc.qt.nokia.com/4.6/designer-creating-custom-widgets.html

tentakel
2nd May 2010, 19:05
YES, but i do not cope with the docu.

i need sth like:
1. start qt creator
2. start project
3. ......

i want to position a custom widget on a form.
so, do you know how it works??

genomega
4th May 2010, 22:05
The way it used to work is using Q_EXPORT_PLUGIN and Q_IMPORT_PLUGIN macros. It may easier now though.