Custom widget [SOLVED]
-
wrote on 13 Apr 2013, 07:44 last edited by
Hi guys,
I'd like to ask you what is the easiest way, or what ways exist, how to use custom widget in designer in Qt Creator. By custom widget I mean subclassed QWidget (for example form with several buttons). I am able to use it in code, but I don't know how to use it via designer. Thanks for advice in advance. -
wrote on 13 Apr 2013, 09:23 last edited by
There is two way for this:
- Promote your widget in qtdesigner. put a simple widget in form and right click on it and select promote
- Write a plugin for that (there is a example in qt for that)
-
wrote on 13 Apr 2013, 12:27 last edited by
The "promote" option Mostafa mentioned is very easy to use.
-
wrote on 13 Apr 2013, 12:39 last edited by
Thanks a lot guys, ithis is what I looked for. This thread could be marked as SOLVED.
1/4