View Revisions: Issue #4633

Summary 0004633: Fix qSlicerReformatModuleWidgetGenericTest by ensuring ctkDoubleSpinBox sizeHint is valid
Revision 2018-10-15 07:33 by jcfr
Description

Setting the sizeHintPolicy of ctk.ctkCoordinatesWidget() has no effect.

In the python interactor:

c = ctk.ctkCoordinatesWidget()
print(c.sizeHintPolicy) # Default is ctk.ctkDoubleSpinBox.SizeHintByMinMax
c.show()

The widget can't be resized to a smaller size because the min/max are internally set with std::numeric_limits<double>::max().
=> This is the expected behavior

Now, update the policy:

c.sizeHintPolicy =  ctk.ctkDoubleSpinBox.SizeHintByValue

=> It should be possible to resize the widget ... but this is failing..

Revision 2018-10-15 07:32 by jcfr
Description

Setting the sizeHintPolicy of ctk.ctkCoordinatesWidget() has no effect.

In the python interactor:

c = ctk.ctkCoordinatesWidget()
print(c.sizeHintPolicy) # Default is ctk.ctkDoubleSpinBox.SizeHintByMinMax
c.show()

The widget can't be resized to a smaller size because the min/max are internally set with std::numeric_limits<double>::max().
=> This is the expected behavior

Now, update the policy:

c.sizeHintPolicy =  ctk.ctkDoubleSpinBox.SizeHintByValue

It should be possible to resize the widget ... but this is failing..
=> This is NOT expected

Revision 2018-10-15 07:31 by jcfr
Description

Setting the sizeHintPolicy of ctk.ctkCoordinatesWidget() has no effect.

In the python interactor:

c = ctk.ctkCoordinatesWidget()
print(c.sizeHintPolicy)  // Default is ctk.ctkDoubleSpinBox.SizeHintByMinMax
c.show()

The widget can't be resized to a smaller size because the min/max are internally set with std::numeric_limits<double>::max().
=> This is the expected behavior

Now, update the policy:

c.sizeHintPolicy =  ctk.ctkDoubleSpinBox.SizeHintByValue

It should be possible to resize the widget ... but this is failing..
=> This is NOT expected

Revision 2018-10-15 07:30 by jcfr
Description

Setting the sizeHintPolicy of ctk.ctkCoordinatesWidget() has no effect.

In the python interactor:

c = ctk.ctkCoordinatesWidget()
print(c.sizeHintPolicy)  // Default is ctk.ctkDoubleSpinBox.SizeHintByMinMax
c.show()

The widget can't be resized to a smaller size because the min/max are internally set with std::numeric_limits<double>::max()

Now, update the policy:

c.sizeHintPolicy =  ctk.ctkDoubleSpinBox.SizeHintByValue

=> It should be possible to resize the widget ... but this is failing.