FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

duic bug -- generates calls to functions that don't exist

 
Post new topic   Reply to topic     Forum Index -> QtD
View previous topic :: View next topic  
Author Message
MrAccident



Joined: 07 Feb 2010
Posts: 3
Location: Seattle, WA

PostPosted: Wed Mar 24, 2010 9:33 pm    Post subject: duic bug -- generates calls to functions that don't exist Reply with quote

I just tried out duic for the first time. When I tried to use the resulting D file in my project, I got a whole bunch of errors like this:

Code:
ui_mainwindow.d(44): Error: no property 'fromUtf8' for type 'QString'
ui_mainwindow.d(44): Error: function expected before (), not __error of type int
ui_mainwindow.d(44): Error: function qt.core.QObject.QObject.setObjectName (string name) is not callable using argument types (int)
Error: cannot implicitly convert expression (__error) of type int to string
Error: cannot cast int to string


I took a look at the QString struct in qtd/include/d/qt/core/QString.di, and sure enough it doesn't have a fromUtf8 method. There is, however, a fromUtf8 method in QStringUtil. Doing a search and replace for "QString.fromUtf8" -> "QStringUtil.fromUtf8" fixed all the errors.
Back to top
View user's profile Send private message
eldar



Joined: 14 Jun 2008
Posts: 101
Location: Ufa, Russia

PostPosted: Fri Mar 26, 2010 8:01 am    Post subject: Reply with quote

Will fix it. Thanks for reporting. Could you please use bugzilla for issues like that next time, as I don't frequently visit forums.
Back to top
View user's profile Send private message
MrAccident



Joined: 07 Feb 2010
Posts: 3
Location: Seattle, WA

PostPosted: Fri Mar 26, 2010 4:02 pm    Post subject: Reply with quote

Ah, do you mean this handy little "New Ticket" button on the wiki pages that I had overlooked? Will do, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> QtD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group