[Kde-perl] puic dies with version error
Alain EMPAIN
"alain.empain" at ulg.ac.be
Thu Mar 30 09:14:44 CEST 2006
Hello Roy,
your problem reminds the mine, a long time ago, so to avoid you to
search in old stuff, I copy my old solving post here.
Have a good day,
Alain
-------------------
Hello,
I am developping with perl-Qt (Version : 3.008, release 118),
designer/Qt 3.3.1 from SuSE 9.1.
puic is <PerlQt User Interface Compiler v0.70 for Qt version 3.3.1>
0/ When I run 'piuic -o ...' an error message says :
"puic: File generated with too recent version of Qt Designer (3.3).
Recent extensions won't be handled."
No problem ;-) : I edit the version 3.3 to 3.0, and it works.
I browsed for a newer version of puic, with no success.
1/ when I change the default font, or the palette with designer, puic is
fooled.
Exploring why, I found that simply the new objects are not listed within
the generated perl module Xxxx.pm :
----------------------
New generated intructions :
sub NEW
{
shift->SUPER::NEW(@_[0..3]);
(...)
pal = Qt::Palette();
cg = Qt::ColorGroup();
cg->setColor(&Qt::ColorGroup::Foreground, &black);
(...)
---------------------------
ERROR:
Can't modify constant item in scalar assignment
at Etpg.pm line 434, near ");"
434: pal = Qt::Palette();
---------------------------
What to do : add pal and cg to Qt::attributes :
use Qt::attributes qw(
pb_sel1
...
=> I added the lacking objects :
pal
cg
);
And with this simple correction, it gives a valid xxx.pm
Is it known stuffs, is there a recent, corrected puic ?
Cheers,
Alain
Roy Souther wrote:
> puic was working earlier today but now all I get is...
> puic: File generated with too recent version of Qt Designer (3.3).
> Recent extensions won't be handled.
>
> WTF is this? I tried some very basic UI files and get the same error. I
> went back an tried some of the UI files that worked this morning and now
> they do not work.
>
> I un-installed PerlQt and re-installed it and still get the same
> problem. I don't understand what could have changed to cause this new
> problem. Has anyone seen this before?
>
> This is PerlQt-3.008. I see there is a PerlQt-3.009-b2 out now. I will
> compile that and see if this fixes the problem.
>
> _Royce Souther <mailto:roy at SiliconTao.com>_
> _www.SiliconTao.com <http://www.SiliconTao.com>_
> Let Open Source help your business move beyond.
>
> For security this message is digitally authenticated by _GnuPG
> <http://www.gnupg.org>_.
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kde-perl mailing list
> Kde-perl at kde.org
> https://mail.kde.org/mailman/listinfo/kde-perl
--
" Do something for freedom every day "
* support Open Document Format :
please discover and use OpenOffice (gratis)
* or at least, install it as a converter from open format
to a proprietary one.
Please realize that proprietary formats are important tools
to reinforce a monopoly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alain.empain.vcf
Type: text/x-vcard
Size: 399 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-perl/attachments/20060330/e70ca3b3/attachment.bin
More information about the Kde-perl
mailing list