Qt 6.11 is out! See what's new in the release
blog
Custom widget [SOLVED]
Qt Creator and other tools
4
Posts
3
Posters
1.5k
Views
1
Watching
-
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. -
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)
-
The "promote" option Mostafa mentioned is very easy to use.