zrax / cctools

Editor and Tool suite for Chip's Challenge, Chip's Challenge 2, and Tile World
http://cctools.zrax.net
GNU General Public License v3.0
20 stars 10 forks source link

Internal: Use QtCreator UI files? #23

Open TheGLander opened 2 years ago

TheGLander commented 2 years ago

There are .ui files which are XML files describing the Qt app layout, which translate to C++ code at compile time and can be easily edited in QtCreator or any normal text editor, I think it could make developing UI easier, as writing code manually takes more time, but there might be drawbacks which I am just unaware of, what do you think?

zrax commented 2 years ago

I'm familiar with Qt Designer forms (the .ui files), but I've had bad experiences with them in the (admittedly distant by now) past. In my experience, they work well for simple forms (like many of the dialogs in CCTools), but are missing some of the properties, features, and even widgets you can find in the C++ API (although it does have a way of injecting arbitrary widgets, as long as you don't need to set any subclass-specific properties on it). I therefore doubt they'd work well for the main application windows of either CCEdit or CC2Edit.

Ironically, the Designer is one of the things that originally drew me to Qt when I was switching from Delphi to C++ many years ago; but now I almost never use it >_>. I hear QML is nicer to work with, but I don't think CCTools is really suited to the type of UI that QML caters to.