QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1165|回复: 1

有谁在QtDesigner中添加上了自定义部件吗?

[复制链接]
发表于 2006-4-30 13:46:13 | 显示全部楼层 |阅读模式
按照网友的提示,我开始尝试用Qwt解决我的毕设问题。虽然这个Qwt提供了一个Qtdesigner的插件,但是我还是不能在Qtdesigner中看到Qwt的自定义部件,并且两个平台的Qt,一个Windows下的Qt4,一个Linux下的Qt3都不行

它的Install方法是这样写的:
[code:1]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.
[/code:1]

我在qmake的时候省略了文件名,这不会引起什么问题吧,因为这个目录下面只有一个.pro文件。其它我都照做了
发表于 2006-5-2 00:10:57 | 显示全部楼层
在linux下做吧, 你win下的 qt 4 估计不行。

你给的提示太少了, 什么叫“都不行”, 具体错误是什么?

我没自己加过部件, 但估计你按上面的步骤来,不会错的吧, 另外,你得用root操作。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 16:31 , Processed in 0.038764 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表