You are not logged in.

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.

Latem

Beginner

  • "Latem" started this thread

Posts: 31

Location: New Brunswick, Canada

Occupation: Student/Programmer

  • Send private message

1

Thursday, August 5th 2004, 7:18pm

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

Latem

Beginner

  • "Latem" started this thread

Posts: 31

Location: New Brunswick, Canada

Occupation: Student/Programmer

  • Send private message

2

Thursday, August 5th 2004, 11:35pm

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

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

3

Friday, August 6th 2004, 1:00am

Some KDE classes need a KInstance reference and some classes even need a KApplication instance.

Cheers,
_
Qt/KDE Developer
Debian User

PaoloUrmet

Unregistered

4

Friday, December 10th 2004, 6:20pm

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

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

5

Tuesday, December 14th 2004, 10:37am

Have you properly constructed your KApplication instance as hinted in my last posting?

Cheers,
_
Qt/KDE Developer
Debian User