Version: (using KDE 3.5.9) Installed from: Ubuntu Packages OS: Linux compiling the appended code and starting it from kdevelop works. whenever invoked from commandline i get the following error -----< error >------------ <unknown program name>(15778)/ KLocalizedStringPrivate::toString: "Trying to convert empty KLocalizedString to QString." ./viewer/bin/viewer: symbol lookup error: /usr/lib/kde4/lib/kde4/plugins/styles/oxygen.so: undefined symbol: _ZNK12KConfigGroup9readEntryEPKcRK8QVariant using the "plastique" style solves the problem -----< test.cpp >---------- #include <QtGui> void process_line(QString line, QGraphicsScene *scene) { scene->addSimpleText(line); } int main(int argc, char **argv) { QApplication app(argc, argv); QGraphicsScene scene; scene.setSceneRect(0, 0, 1000, 1000); scene.setItemIndexMethod(QGraphicsScene::NoIndex); QGraphicsView view(&scene); view.setRenderHint(QPainter::Antialiasing); view.setCacheMode(QGraphicsView::CacheBackground); view.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate); view.resize(640, 480); view.show(); return app.exec(); }
QStyles have nothing to do with plasma; and it is an issue with your runtime env in any case.