Bug 468727

Summary: Code less & create more with Qt
Product: [Applications] ghostwriter Reporter: renaud.guezennec
Component: generalAssignee: megan.conkle
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description renaud.guezennec 2023-04-20 15:49:38 UTC
SUMMARY
Replace UI creation code by ".ui" files for most widgets.
As it will create simpler code to read and edit. 
The cpp code will be mainly dedicated on what to do instead of how elements must appear.
It can definitely improve the way to add new features.
Anybody who doesn't like Qt Designer are free to make/edit ".ui" files by hand if they really want to work like in the 90's.
Of course, the change can be done one by one. No need to rush and make an all at once change.


OBSERVED RESULT
It gives headache to find the right place to add a poor QLineEdit or QLabel into dialog boxes. 

EXPECTED RESULT
Just drag and drop, set a proper name and that should be all.

SOFTWARE/OS VERSIONS: All
KDE Plasma Version: All 
KDE Frameworks Version:  All
Qt Version: 5 or 6

ADDITIONAL INFORMATION
Comment 1 Devin Lin 2023-04-20 16:00:38 UTC
This is a Qt Quick application, what you have described applies to Qt Widgets applications.
Comment 2 renaud.guezennec 2023-04-20 16:03:10 UTC
No, ghostwriter is a Qt widgets application.