• 7503阅读
  • 4回复

有谁在QtDesigner中添加上了自定义部件吗? [复制链接]

上一主题 下一主题
离线chwoozy
 

只看楼主 倒序阅读 楼主  发表于: 2006-04-25
按照网友的提示,我开始尝试用Qwt解决我的毕设问题。虽然这个Qwt提供了一个Qtdesigner的插件,但是我还是不能在Qtdesigner中看到Qwt的自定义部件,并且两个平台的Qt,一个Windows下的Qt4,一个Linux下的Qt3都不行

它的Install方法是这样写的:
INSTALL


For building Qwt for Qt 2.x you need tmake. On SuSE it is hidden
in a package called qt-freebies. It can be downloaded from
http://www.trolltech.com/developer/download/tmake.html.

You have to set TMAKEPATH to point
to your development environment and run tmake:

export TMAKEPATH=/usr/lib/tmake/linux-g++ # path depends on your system
tmake qwt.pro -o Makefile
make

If you like to build the examples:

cd examples
tmake examples.pro -o Makefile
make

Builds for Qt 3.x need qmake, that is official part of Qt 3.x.

qmake qwt.pro
make

The designer plugin is available for Qt > 3.x only. You can build and
install it with:

cd designer
qmake qwtplugin.pro
make
make install


If you like to build the examples:

cd examples
qmake examples.pro
make

If you like to run the examples, don't forget to install the qwt libraries
or set the LD_LIBRARY_PATH to the lib directory of your local build.

qwt doesn't distribute binary unix packages. qwt.spec is a template
spec file for building rpm packages. Read the comments at the beginning
of qwt.pro how to use it.


我在qmake的时候省略了文件名,这不会引起什么问题吧,因为这个目录下面只有一个.pro文件。其它我都照做了
[ 此贴被chwoozy在2006-04-26 17:16重新编辑 ]
离线myer

只看该作者 1楼 发表于: 2006-04-26
cd designer
qmake qwtplugin.pro
make
make install
这样后应没问题
否则手动把生成的插件(dll或者so)copy到qt的插件目录试试
http://user.qzone.qq.com/56430808
离线chwoozy

只看该作者 2楼 发表于: 2006-04-26
还是不行
离线chwoozy

只看该作者 3楼 发表于: 2006-05-06
经过高人的指点,我在Linux下的Qt3.3中的QtDesigner中添加上了qwt的自定义部件,详情可以见
http://www.myswear.net/forum/viewthread.php?tid=4817&fpage=1&highlight=&page=1
不过现在我还想尝试一下把Windows下的Qt4中的QtDesigner添加上自定义部件,不知道应该怎么弄。请各位高手指教。

或者是因为qwtplugin.pro中的这一行使得不能安装在Qt-4.1/MinGW中吗:
  1. # isEmpty(QT_VERSION) does not work with Qt-4.1.0/MinGW
离线chwoozy

只看该作者 4楼 发表于: 2006-05-08
可能用类比能知道答案吧,像Linux下把那几个库文件拷贝到/lib中,那我就可以相应地在Windows下把库文件拷贝到system32中。不过与Linux下的ldconfig命令相对应的Windows的操作是什么我就不知道了
快速回复
限100 字节
 
上一个 下一个