Bug 166952

Summary: pure qt4 application doesn't work with oxygen style
Product: [Unmaintained] plasma4 Reporter: babu <babu5677>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description babu 2008-07-18 20:21:51 UTC
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();
}
Comment 1 Aaron J. Seigo 2008-07-18 20:50:05 UTC
QStyles have nothing to do with plasma; and it is an issue with your runtime env in any case.