随笔 - 455  文章 - 694  trackbacks - 0
<2007年9月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


子曾经曰过:编程无他,唯手熟尔!
feedsky
抓虾
pageflakes
Rojo
狗狗
google reader
bloglines
my yahoo
newsgator
netvibes
鲜果


Locations of visitors to this page

常用链接

留言簿(50)

随笔分类(591)

随笔档案(455)

相册

BCB

Game Industry

OGRE

other

Programmers

Qt

special guys

  • bright tomorrow
  • A guy who has very close blood relationship with me!
  • 俺是山东人啊
  • One guy who often makes me cry in silent night.I love him so much, but I cannot see him any more, cause the God wanted him to be around.

WOW Stuff

搜索

  •  

积分与排名

  • 积分 - 202628
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜

60天内阅读排行

我们在vs2005中 Qt->Open Solution from .pro File 时,可能会碰到这个问题


这是因为license的问题

看输出:
--- (Import): Generating new project of qtcolortriangle.pro file
--- (qmake) : Using: d:\qt\4.3.0\bin\qmake
--- (qmake) : Working Directory: I:\Soft\QtSetup\solutions\qtcolortriangle-2.4-commercial
--- (qmake) : Arguments: -spec $(QTDIR)\mkspecs\win32-msvc2005 -tp vc "qtcolortriangle.pro" -recursive QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR_QT=  QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_UIC=$(QTDIR)\bin\uic.exe QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_RCC=$(QTDIR)\bin\rcc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe
--- (Import): Success - 20

[14] - .
[15] - Please choose your region.
[16] - .
[17] - Type 1 for North or South America.
[18] - Type 2 for anywhere outside North and South America.
[19] - .
[20] - Select:

--- (Import): Error - 4

[3] - 此时不应有 (。
[4] - Project ERROR: You are not licensed to use this software.

破解方法很简单:
1.建立一个txt文件;
2.写“license accepted ”到文件里,注意是写引号里面的部分,最后的空格不确定是否必须;
3.把文件名改为"licenseAccepted",没有后缀名。

放到每个solution的util文件夹里,如 QtSetup\solutions\qtcolorcombobox-2.2-commercial\util\ 下面
好了,爽了


solutions里面的某些可以嵌入到Qt Designer里面,如ColorPicker,还能编辑属性,啧啧啊



直接把 solutions\qtcolorpicker-2.3-commercial\plugin\plugin.pro 用vs2005中的Qt->Open Solution from .pro File打开,release生成一次,就自动地把qtcolorpickerplugin.dll放到$(QTDIR)\plugins\designer\下了

插件实现原理:

class QtColorPickerPlugin : public QObject, public QDesignerCustomWidgetInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetInterface)

public:
    QtColorPickerPlugin(QWidget 
*parent = 0);
    
~QtColorPickerPlugin() {}
    QString name() 
const;
    QString group() 
const;
    QString toolTip() 
const;
    QString whatsThis() 
const;
    QString includeFile() 
const;
    QIcon icon() 
const;
    
bool isContainer() const;
    QWidget 
*createWidget(QWidget *parent);
    
bool isInitialized() const;
    
void initialize(QDesignerFormEditorInterface *core);
    QString domXml() 
const;

private:
    
bool m_initialized;
};

posted on 2008-01-12 00:57 七星重剑 阅读(1761) 评论(8)  编辑 收藏 引用 所属分类: C++ lib -- Qt

FeedBack:
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-01-28 21:17 Cavendish Qi
宣传破解和盗版!!!
  回复  更多评论
  
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-01-30 09:52 七星重剑
@Cavendish Qi
呵呵,宣传Qt的有效途径  回复  更多评论
  
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-01-30 10:00 七星重剑
@Cavendish Qi
Nokia把Qt收购了,Qt免费算了,整这协议那协议的,麻烦  回复  更多评论
  
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-01-30 11:46 eXile
Cavendish Qi 是Trolltech的,你跟人家宣传这个。。。
  回复  更多评论
  
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-01-30 11:53 七星重剑
@eXile
呵呵,这么强大的东西咋就没多少人用呢?
我急啊^_^

我使劲学习,做个牛X的东东出来,展示下Qt的威力,我肯定用商业版Qt做,开源版用起来不方便  回复  更多评论
  
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-01-30 11:55 七星重剑
@Cavendish Qi
破解和盗版也是一种技术,一种艺术,嘿嘿  回复  更多评论
  
# re: Qt 4.3.0 commercial edition solutions 超级搞笑的破解 2008-07-28 19:21 lx

标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]

相关链接:
网站导航: