David Faure wrote:
> In your case, if you're turning KMultiPage into a simple widget,
> you can get rid of all this and keep only a QWidget* parentWidget.


Well, I've got to the point where I have an executable. However:

This is probably a real newbie question, but...

The following program, compiled
$ g++ -I/usr/lib/qt-3.3/include -o kdvi ../../kdvi/main.cpp \
-L/usr/lib/qt-3.3/lib -lqt-mt
runs perfectly.

#include
#include

int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello World\n", 0);
hello.resize(100, 30);

hello.show();
return app.exec();
}

However, if I link it

/bin/sh ../libtool --silent --mode=3Dlink --tag=3DCXX g++ -Wnon-virtual-dt=
or
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith
-Wno-non-virtual-dtor -O2 -Wformat-security -Wmissing-format-attribute
-fno-exceptions -fno-check-new -fno-common-DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o
kdvi -L/usr/lib -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib -R /usr/lib
-R /usr/lib -R /usr/lib/qt-3.3/lib -R /usr/X11R6/lib main.o
renderedDviPagePixmap.o dviPageCache.o kdvi_multipage.o
kdvi_multipage_texthandling.o dviRenderer.o bigEndianByteReader.o
infodialog.o psheader.o dviRenderer_draw.o dviRenderer_prescan.o
dviRenderer_export.o dviFile.o fontpool.o fontprogress.o psgs.o fontMap.o
fontEncoding.o fontEncodingPool.o special.o util.o vf.o glyph.o
optionDialogFontsWidget.o optionDialogSpecialWidget.o TeXFont.o
TeXFont_PK.o TeXFont_PFB.o TeXFont_TFM.o TeXFontDefinition.o dviWidget.o
dvisourcesplitter.o documentPageCache.o documentRenderer.o
documentWidget.o history.o kmultipage.o kprintDialogPage_pageoptions.o
marklist.o pageSize.o pageView.o renderedDocumentPage.o
renderedDocumentPagePixmap.o renderedDocumentPagePrinter.o searchWidget.o
selection.o simplePageSize.o tableOfContents.o units.o
optionDialogFontsWidget_base.o optionDialogSpecialWidget_base.o prefs.o
kvsprefs.o -lkio -lkdeprint -lfreetype -lz -lm

Then it exits immediately:
$ ./kdvi
QPaintDevice: Must construct a QApplication before a QPaintDevice

Note that I'm not actually using any of this extra code...
Any clues?
Angus


=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<