Bug 250969 - Qyoto's uics generates incorrect code for QFormLayout
Summary: Qyoto's uics generates incorrect code for QFormLayout
Status: RESOLVED WORKSFORME
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 14:09 UTC by Pete
Modified: 2023-01-12 05:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pete 2010-09-12 14:09:02 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

I have created a form in Qt Designer with two rows.  Each row has a QLabel on the left, and a QLineEdit box on the right.  If I arrange these using QGridLayout, everything works as expected.  If I use QFormLayout, two problems occur:

1.  If I ask for a preview of the window in Qt Designer, the labels are shown on the left and the fields on the right, as expected.  However, when I compile using uics and display the form in my c# application, the fields are shown underneath the labels.  It looks as though the layoutRowWrapPolicy is getting set to WrapAllRows, even though Qt Designer claims that the policy is DontWrapRows.

2.  To try and work around this, I set the layoutRowWrapPolicy to WrapAllRows, then back to DontWrapRows.  Unfortunately this makes the problem worse.  Uics now generates c# code that doesn't compile, in particular this line:

formLayout.RowWrapPolicy = QFormLayout.RowWrapPolicy.DontWrapRows;

Presumably this should be:

formLayout.rowWrapPolicy = QFormLayout.RowWrapPolicy.DontWrapRows;

This compiles although problem 1 still occurs.

(BTW, this test was done with the Ubuntu Maverick beta, hence the odd combination of Ubuntu and KDE 4.5.1.)

Reproducible: Always

Steps to Reproduce:
1.  Create form in Qt Designer with two rows, arranged using QFormLayout.
2.  Compile the form using uics.
3.  Use MonoDevelop to create an application which displays the form.
4.  Run application.
5.  Set layoutRowWrapPolicy to WrapAllRows, then back to DontWrapRows.
6.  Compile the form using uics.
7.  Run application.


Actual Results:  
At step 4, fields will be displayed underneath labels.  At step 7, a compile error will occur.

Expected Results:  
At step 4, fields should be displayed to the right of the labels.  At step 7 the uics-generated code should compile without errors.
Comment 1 Andrew Crouthamel 2018-11-05 03:08:45 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-16 05:38:07 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 3 Justin Zobel 2022-12-13 02:53:39 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you cazn reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-28 05:25:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2023-01-12 05:18:36 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!