Qt, widget generated with inheritance?
I remember when messing around with Qt seeing something w开发者_StackOverflow社区here it was like
class MyForm : QDialog
{
}
Instead of
class MyForm
{
void SetupUi(QDialog* dialog);
}
How do you generate the inherited form?
It is the new and only way to setup your UI since Qt 4.0. Like it or not, you can always alter the generated code before building.
Here's an article on porting .ui files to Qt 4.x - http://qt.nokia.com/doc/4.0/porting4-designer.html.
精彩评论