Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Generated ui_xx.h should include WApplication #7

Open
cls-nebadje opened this issue Jun 13, 2016 · 1 comment
Open

Generated ui_xx.h should include WApplication #7

cls-nebadje opened this issue Jun 13, 2016 · 1 comment

Comments

@cls-nebadje
Copy link
Collaborator

Hi Juan,

the generated ui_xx.h references Wt::WApplication in several places but does not include the WApplication header which results in a unclean include hierarchy.

Regards
Uli

@juangburgos
Copy link
Owner

The Wt::WApplication header is included in the autogenerated header file with the same name as your project. E.g. for a "Calculator" project you would have a calculator.h with contents like:

#include <Wt/WApplication>

#include "ui_calculator.h"

class Calculator : public Wt::WApplication

This style follows the Qt style which might be good or might be bad but is the one that I know. QtDesigner does exactly the same and I was inspired by WtDesigner. Also other Qt developers are used to this style. Might not be the best option but I don't like re-inventing the wheel, so I think I will keep it this way.

Best.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants