You are not logged in.

Latem

Intermediate

  • "Latem" is male
  • "Latem" started this thread

Posts: 278

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
Latem has attached the following file:
  • LinkTest.zip (18.09 kB - 55 times downloaded - latest: Jan 4th 2011, 1:58am)
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

Intermediate

  • "Latem" is male
  • "Latem" started this thread

Posts: 278

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

Posts: 2,162

Location: Graz, Austria

Occupation: Student

  • 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

Posts: 2,162

Location: Graz, Austria

Occupation: Student

  • 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