On 14 April 2011 22:25, Thomas Ehrnhoefer <[email protected]> wrote: > Hi Erik > > Here is a minimized example. it's supposed to be extracted to the plugins/ > folder (so the .pro sits in plugins/test/test). > Also here is a screenshot of the error I am seeing when I am trying the "Go > to slot..." action. > > @Gregory: please be patient for an answer, I can't say anything at this > point, sorry > > On Tue, Apr 12, 2011 at 11:45 PM, <[email protected]> wrote: >> >> Can you create a minimized example and send that to me? >> -- Erik. >> >> ________________________________ >> From: [email protected] >> [[email protected]] on behalf of ext >> Thomas Ehrnhoefer [[email protected]] >> Sent: 06 April 2011 00:13 >> To: [email protected] >> Subject: Re: [Qt-creator] designer out of sync with source code? >> >> I actually had a ui_[classname].h in my project folder. removing that >> fixed that out-of-sync issue >> >> the "go to slot" functionality still fails to work though >> >> On Tue, Apr 5, 2011 at 2:55 PM, Thomas Ehrnhoefer >> <[email protected]> wrote: >>> >>> Hi >>> >>> I have a QWidget extension which I created using the "Add New" wizard >>> workflow. I created my simple UI using the designer, so far so good. >>> But now I wanted to add another button, and that button does not appear >>> in my ui object. Looking at the Ui_ class, it just not appears as a member >>> there, but it is in the form XML. The designer itself displays the button as >>> well. >>> >>> Seems like whatever triggers the code generation does not work. Also I >>> could never do the "got to slot..." thing either, always complained that the >>> "class definition of Ui::... could not be found. >>> >>> I created a new empty project and a widget using the wizard there, to see >>> if I can spot any difference, but I could not. >>> >>> Any idea what can be wrong here? >>> >>> Thanks >>> Thomas >>> >>> -- >>> Thomas Ehrnhoefer >>> Software Developer, http://tasktop.com >> >> >> >> -- >> Thomas Ehrnhoefer >> Software Developer, http://tasktop.com >> >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.qt.nokia.com/mailman/listinfo/qt-creator >> > > > > -- > Thomas Ehrnhoefer > Software Developer, http://tasktop.com > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator > >
Hello, To summarize the issue: reproducible on Windows platform only. The reason: the class file name is camelcase, while QtCreator expects all lowercase name. Since filesystem name is case sensitive on Linux, it is not an issue. When you use a wizard to create new form, file names of new class are lowercase. This is Qt convention. So if you do not change the case of generated files - "Go to slot..." works on Windows. But I think case issue on Windows can be easily fixed. You can use camelcase in file names on Linux. The only requirement I can see here is that name of header and source files of new class MUST be identical. -- Gregory Smirnov Software Engineer 2X Software - http://www.2x.com Developers of virtual computing software _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
