Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, March 2007
QSpacer in designer


Message 1 in thread

Hi qt-insterest

if I try to edit the propertys of the QSpacer (in the plugin-designer), 
it shows the entris 'prefered, expandings..) in a c++ manner (i.E. 
QSizePolicy::prefered, QSizePolicy::expanding) , which will leed to an 
error in the corresponding *.jui file.


greetings
Arne


Message 2 in thread

Arne Stocker wrote:
> Hi qt-insterest
> 
> if I try to edit the propertys of the QSpacer (in the plugin-designer), 
> it shows the entris 'prefered, expandings..) in a c++ manner (i.E. 
> QSizePolicy::prefered, QSizePolicy::expanding) , which will leed to an 
> error in the corresponding *.jui file.

Hi Arne,

As previously stated, there are a number of problems with juic and the 
designer integration in the current release. We have many of these 
sorted out already internally and hope to catch the rest before the next 
release.

Some properties are stored in the .jui file in a C++ or non-Java manner. 
This is the way it has to be because of some of the inner workings of 
designer. Such as:

     <spacer>
      <property name="orientation" >
       <enum>Qt::Vertical</enum>
      </property>


and

      <property name="sizePolicy" >
       <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
        <horstretch>0</horstretch>

In these cases we have special code in juic or the QUiLoader to parse 
this. This will only ever happen for the some special built in 
properties so we can hardcode support for them. This support is however 
missing in both juic and in the QUiLoader so neither of the above works 
according to expectations ;-(

So the bottom line is: The .jui file is correct, but the tools to use it 
are buggy.

Best regards,
Gunnar