Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2011-12

QSizePolicy attn. Den

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko

Hi,

I'm trying to fix http://bugs.freepascal.org/view.php?id=20805 , but no luck, I need QSizePolicy class to trigger Qt to recalculate button width when autosize=true.
In our bindings QSizePolicy class is record with one member. In qt it's complete class with various params for horizontal and vertical resizing.
Is it possible to get QSizePolicy into bindings somehow or how to set all params into that one member ?

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111209/43f66b45/attachment.html>

Den Jean
to zeljko
zeljko wrote
In qt it's complete class with various params for horizontal and vertical resizing. Is it possible to get QSizePolicy into bindings somehow or how to set all params into that one member ?

a V2.5 RC is temporarily available here:

http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V2.5RC/ -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111209/554e6865/attachment.html>

zeljko
to Den Jean
Den Jean wrote 8 lines
On Friday 09 December 2011 13:10:01 zeljko wrote: > In qt it's complete class with various params for horizontal and vertical > resizing. Is it possible to get QSizePolicy into bindings somehow or how > to set all params into that one member ? a V2.5 RC is temporarily available here: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V2.5RC/
Not good. QWidget_setSizePolicy(QWidgetH, PSizePolicy),
but should be QWidget_setSizePolicy(QWidgetH, QSizePolicyH);

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111210/bd1132d8/attachment.html>

zeljko
to Den Jean: a V2.5 RC is temporarily available here: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V…
Den Jean wrote 8 lines
On Friday 09 December 2011 13:10:01 zeljko wrote: > In qt it's complete class with various params for horizontal and vertical > resizing. Is it possible to get QSizePolicy into bindings somehow or how > to set all params into that one member ? a V2.5 RC is temporarily available here: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V2.5RC/

also QWidget_sizePolicy(QWidgetH; retval: PSizePolicy) should be QWidget_sizePolicy(QWidgetH; retval: QSizePolicyH)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111210/bcf38a62/attachment.html>