I get no text drawing on buttons and while trying to run tutorial 2 I get a segmentation fault when running the application:
import qt.gui.QApplication;
import qt.gui.QFont;
import qt.gui.QPushButton;
int main(string[] args)
{
auto app = new QApplication(args);
auto quit = new QPushButton("Quit");
quit.resize(74, 30);
auto font = new QFont("Courier", 18, QFont.Bold, true);
app.setFont(font);
QObject.connect(quit, "clicked", app, "quit");
quit.show();
return app.exec();
}
compiles successfully with:
dmd main.d -L-lqtdgui -L-lqtdcore -L-lQtCore -L-lQtGui
running the application causes segmentation fault. If I remove the QFont references the application runs and displays the window, however there is no text on the button.
Os and Software Versions:
Linux sean-linux 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
DMD64 D Compiler v2.054
QT_VERSION: 263938
QT_VERSION_STR: 4.7.2