[Qt-interest] Qt Designer Custom Widgets

Alex Ivasyuv industral at gmail.com
Sat Nov 6 18:26:30 CET 2010


Hi,

I need to implement customTextEditWidget of QTextEdit.
I created custom class, which implements QTextEdit, called 
CustomChatWindow (cpp & hpp files).

Now I would like to use this custom class in QT Designer.

I found in docs, that I could use "Promote" feature, but when I do this, 
I get on app start the following error:
"QFormBuilder was unable to create a custom widget of the class 
'CustomChatWindow'; defaulting to base class 'QTextEdit'."

I think issue in name of header file that you have to clarify in popup 
dialog
http://doc.qt.nokia.com/4.7/images/designer-promoting-widgets.png 
("Header file").

I have CustomChatWindow.hpp & CustomChatWindow.cpp. And they lies in 
some subfolders.
What should I pointed there? Relative or absolute path to header file? 
Or maybe only here header file name? If so, related of what...

I found here a video http://www.youtube.com/watch?v=Yt-YCxgEnyw, but 
it's a custom widget created by Designer.

Thanks,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101106/1617e801/attachment.html 


More information about the Qt-interest-old mailing list