View previous topic :: View next topic |
Author |
Message |
MrAccident
Joined: 07 Feb 2010 Posts: 3 Location: Seattle, WA
|
Posted: Wed Mar 24, 2010 9:33 pm Post subject: duic bug -- generates calls to functions that don't exist |
|
|
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 |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Fri Mar 26, 2010 8:01 am Post subject: |
|
|
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 |
|
|
MrAccident
Joined: 07 Feb 2010 Posts: 3 Location: Seattle, WA
|
Posted: Fri Mar 26, 2010 4:02 pm Post subject: |
|
|
Ah, do you mean this handy little "New Ticket" button on the wiki pages that I had overlooked? Will do, thanks! |
|
Back to top |
|
|
|