On 11/03/2010 08:48 PM, Josh Stratton wrote:

I have had idea to rewrite qt binary tools into pure java to abandon
qtjambi-specific designer a year ago. After a few days of investigation
I decided it is too complex job for me. Then I created qtjambi-maven-plugin
which uses these binaries directly.

Going back to ${subj}, I think it is not technically impossible to 
create class
constructing user interface from .ui files at runtime, java afaik has some
"dark and deep and tricky" features to generate code on-the fly, but 
understanding
the whole .ui file is very hard job and structure of that file should 
change with any
new version of qt.

--
msk

> Yes, but generating UI classes is not usually time-critical thing when
> doing an operation as small as parsing a file--especially since it can
> be cached.  Frameworks like hibernate still use xml files instead of
> hardcoding that data into the app.  I mean, the ui files don't change
> behavior really in any way, do they?  Just set some default properties
> in general?
>
> If I have time, maybe I can mock up a quick factory using janino to
> build some classes and post my results.
>
> On Wed, Nov 3, 2010 at 11:34 AM, Samu Voutilainen<[email protected]>  wrote:
>> On Wednesday 03 November 2010 20:24:25 Josh Stratton wrote:
>>> I may be beating a dead horse, but is there any way to load ui files
>>> directly into qtjambi without using juic?  I know pyqt can do it.  Has
>>> no one written a parser for it or is it something much more complex?
>>> I've always had unresolved errors using juic, and it's a big hassle
>>> compared to just using designer and reloading your python app.
>>>
>>> Josh
>>> _______________________________________________
>>> Qt-jambi-interest mailing list
>>> [email protected]
>>> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>>>
>> The compiler exists for speed. Unlike with python, which is interpreted 
>> language, Java code is ”compiled” anyways, so it is only small task to ask 
>> juic task to that phase.
>>
>> Myself, I prefer writing the UIs by hand.
>>
>> --
>> Terveisin,
>> Samu Voutilainen
>> http://smar.fi
>>
>> _______________________________________________
>> Qt-jambi-interest mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>>
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to