Originally Posted by
wysota
Does it mean you can't extend it with a simple dialog?
It doesn't have to be sophisticated, just a plain dialog with a font combobox.
It's really simple, just use
QApplication::setFont().
When I say green, I mean that I just managed to get Qt built as a static lib and do qmake to set up an Xcode project which, with some fiddling, resulted in the working app.
I've never coded with Qt previously (I'm a Java/Python/Cinema 4D C++ SDK developer).
int main(int argc, char *argv[])
{
IvyGenerator ivyGenerator;
ivyGenerator.show();
application.connect(&application, SIGNAL(lastWindowClosed()), &application, SLOT(quit()));
// *** Added here ***
application.setFont(f);
// *** ---- ****
return application.exec();
}
int main(int argc, char *argv[])
{
QApplication application(argc, argv);
IvyGenerator ivyGenerator;
ivyGenerator.show();
application.connect(&application, SIGNAL(lastWindowClosed()), &application, SLOT(quit()));
// *** Added here ***
QFont f("Helvetica", 8);
application.setFont(f);
// *** ---- ****
return application.exec();
}
To copy to clipboard, switch view to plain text mode
This is the only place where QApplication is mentioned - though I suspect that it can be had from one of the widgets (?).
Thanks,
Robert
Bookmarks