Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
using libkdeui
Why is it that whenever I try using a KDE widget I get a segfault in KInstance::config()?
It seems to work though if I change in the main.cpp Qapplication to KApplication.
Do you need to use KApplication?
I am pretty sure I've used KDE widgets before, with a QTDesigner generated main.cpp.
It just stopped working...
For example here's a small program that's just a dialog with a URL label.
Any help with this is appreciated,
Latem
The march of progress:
C:
printf("%10.2f", x);
C++:
cout << setw(10) << setprecision(2) << showpoint << x;
Java:
java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance();
formatter.setMinimumFractionDigits(2);
formatter.setMaximumFractionDigits(2);
String s = formatter.format(x);
for (int i = s.length(); i < 10; i++) System.out.print(' ');
System.out.print(s);
never mind I figured out what I was doing wrong. I wasn't linking it right.
Latem
The march of progress:
C:
printf("%10.2f", x);
C++:
cout << setw(10) << setprecision(2) << showpoint << x;
Java:
java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance();
formatter.setMinimumFractionDigits(2);
formatter.setMaximumFractionDigits(2);
String s = formatter.format(x);
for (int i = s.length(); i < 10; i++) System.out.print(' ');
System.out.print(s);
Some KDE classes need a KInstance reference and some classes even need a KApplication instance.
Cheers,
_
Qt/KDE Developer
Debian User
i have the same your problem..
Segmentation fault if I use KDE Widgets in my application.
Can you tell me how you resolve the problem?
thanks
Have you properly constructed your KApplication instance as hinted in my last posting?
Cheers,
_
Qt/KDE Developer
Debian User