[Bug 166952] New: pure qt4 application doesn't work with oxygen style

babu babu5677 at gmx.ch
Fri Jul 18 20:21:52 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=166952         
           Summary: pure qt4 application doesn't work with oxygen style
           Product: plasma
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: panel-devel kde org
        ReportedBy: babu5677 gmx ch


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();
}


More information about the Panel-devel mailing list