Bug 166952 - pure qt4 application doesn't work with oxygen style
Summary: pure qt4 application doesn't work with oxygen style
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 20:21 UTC by babu
Modified: 2008-07-18 20:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.