Excuse my small knowledge about Qt Designer.I am using qwt and have successfully integrated this into my QT designer such that
I can choose and use a QwtPlot widget from the QT toolbox.
How can i add qwt widgets to Tools in QtDesigner?
Excuse my small knowledge about Qt Designer.I am using qwt and have successfully integrated this into my QT designer such that
I can choose and use a QwtPlot widget from the QT toolbox.
How can i add qwt widgets to Tools in QtDesigner?
Yup
Exactly the same question here.
QWT is installed correctly.
But, in Designer, there is nothing to promote for QWT ....
Cheers
JIA Pei
Welcome to Vision Open
http://www.visionopen.com
I had the same problem. I just use a QWidget item in Qt Designer instead of a QwtPlot item. I then promote the QWidget item to my custom QwtPlot item. Works great.
thats easy:
* in the qtdesigner, put a QWidget as placeholder on your widget (can be any class derived by qwidget, I usually take a QListView)
* rightclick on this QWidget you'd like to promote
* in the contextmenu, choose "promote to..."
* fill in your custom class name (e.g. "MyCustomQwtPlot") and the header file your class is located in (e.g. "MyCustomQwtPlot.h")
* press enter and the "Promote" button gets enabled
* click this button and everything should work![]()
i have done this in following way:
-manually edit *.ui file
-find tag customwidgets
-add sub tag
<customwidget>
<class>QwtPlotEx</class>
<extends>QwtPlot</extends>
<header>qwt_plotex.h</header>
</customwidget>
-save
-open this file in "QT designer"
-promote QwtPlot to QwtPlotEx !!
-create qwt_plotex.h and qwt_plotex.cpp
ken123 (20th October 2011)
Bookmarks