Can you explain what you mean by "can't get to display anything"? You cannot see the QLCDNumber widget at all (it has a frame that is always there), or the number is visible but 0, or something else?
This small program works fine here:
#include <QtGui>
#include <QDebug>
int main(int argc, char *argv[])
{
lcd.display(2345);
// These work too
// lcd.display(2345.0);
// lcd.display("2345");
lcd.show();
return app.exec();
}
#include <QtGui>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLCDNumber lcd;
lcd.display(2345);
// These work too
// lcd.display(2345.0);
// lcd.display("2345");
lcd.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Edit: OK, you found the problem. Ignore this.
Bookmarks