I found this patch on Usenet that fixes the PerlQt-2.105
distribution to compile for Qt2. I had to also make
some manual changes to Makefile.PL to point it to the correct libs/includes for Qt2, since I had both versions 1.44 and 2.2.1 installed.
diff -uNr PerlQt-2.105/Makefile.PL PerlQt-patched/Makefile.PL
--- PerlQt-2.105/Makefile.PL Tue Mar 7 05:58:24 2000
+++ PerlQt-patched/Makefile.PL Sun Aug 13 14:32:12 2000
@@ -23,10 +23,10 @@
$win32 = 1 if $OS =~ /Win/;
-$MAKE = 'Qt-1.4';
+#$MAKE = 'Qt-1.4';
# If you want to compile using Qt-2.0, uncomment the next line
-#$MAKE = 'Qt-2.0';
+$MAKE = 'Qt-2.0';
$ENV{QTDIR} = $win32 ? "C:\\Qt" : '/usr/lib/qt' unless $ENV{QTDIR};
diff -uNr PerlQt-2.105/Qt-2.0/Qt.pig PerlQt-patched/Qt-2.0/Qt.pig
--- PerlQt-2.105/Qt-2.0/Qt.pig Tue Mar 7 01:28:43 2000
+++ PerlQt-patched/Qt-2.0/Qt.pig Tue Aug 15 21:28:15 2000
@@ -36,12 +36,6 @@
WState_AutoMask,
WState_Polished,
WState_DND,
- WState_USPositionX,
- WState_PaletteSet,
- WState_PaletteFixed,
- WState_FontSet,
- WState_FontFixed,
- WState_Withdrawn
};
enum WidgetFlags {
WType_TopLevel,
@@ -62,8 +56,6 @@
WStyle_Tool,
WStyle_StaysOnTop,
WStyle_Dialog,
- WStyle_Reserved2,
- WStyle_Reserved3,
WStyle_Mask,
WDestructiveClose,
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.