Re: [PyQt] Links in QMessageBox.about() not working

2011-05-18 Thread Hans-Peter Jansen
On Wednesday 18 May 2011, 19:29:04 Detlev Offenbach wrote:
> On Dienstag, 17. Mai 2011, Joel B. Mohler wrote:
> > On Tuesday, May 17, 2011 08:46:57 am David Boddie wrote:
> > > On Tue May 17 10:21:04 BST 2011, Hans-Peter Jansen wrote:
> > > > On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote:
> > > > > I am developing a simple cross platform GUI using PyQt. I
> > > > > have tried to show the about dialog using QMessageBox.about()
> > > > > with richtext formatting with html tags (, , and ).
> > > > > The dialog correctly renders the HTML but the links are not
> > > > > working.
> > > > >
> > > > > Interestingly, when I tried the QMessageBox.aboutQt() to show
> > > > > the "About Qt" dialog, the links in that dialog doesn't work
> > > > > either. Same with the "About Qt" dialog form the help menu of
> > > > > Qt Designer also.
> > > > >
> > > > > Is there any workaround for the issue? Or is it a reported
> > > > > bug?
> > > >
> > > > Works for me. Since you didn't told us your OS/versions, I will
> > > > leave it up to you to find out mine. Hehe.
> > >
> > > Anoop and I discussed the problem on IRC. We're both using Qt
> > > 4.7.2. The problem occurs with KDE 4 on Kubuntu (10.10, if I
> > > remember correctly). On the other hand, on KDE 3 and Windows, it
> > > apparently works fine.
> >
> > I concur that the links don't work on ubuntu 10.04 with qt 4.6.2 in
> > a PyQt application.  They do work in the kmail kde about box.  It
> > is also working on my windows install, but I forget the exact
> > versions and am in linux at the moment.
>
> I can confirm this issue for Kubuntu 11.4. It works on other Linux
> flavours (like openSUSE) and Win systems.

Then this might be a Kubuntu Qt build issue.

Pete

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Links in QMessageBox.about() not working

2011-05-18 Thread Detlev Offenbach
On Dienstag, 17. Mai 2011, Joel B. Mohler wrote:
> On Tuesday, May 17, 2011 08:46:57 am David Boddie wrote:
> > On Tue May 17 10:21:04 BST 2011, Hans-Peter Jansen wrote:
> > > On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote:
> > > > I am developing a simple cross platform GUI using PyQt. I have tried
> > > > to show the about dialog using QMessageBox.about() with richtext
> > > > formatting with html tags (, , and ). The dialog correctly
> > > > renders the HTML but the links are not working.
> > > > 
> > > > Interestingly, when I tried the QMessageBox.aboutQt() to show the
> > > > "About Qt" dialog, the links in that dialog doesn't work either. Same
> > > > with the "About Qt" dialog form the help menu of Qt Designer also.
> > > > 
> > > > Is there any workaround for the issue? Or is it a reported bug?
> > > 
> > > Works for me. Since you didn't told us your OS/versions, I will leave
> > > it up to you to find out mine. Hehe.
> > 
> > Anoop and I discussed the problem on IRC. We're both using Qt 4.7.2. The
> > problem occurs with KDE 4 on Kubuntu (10.10, if I remember correctly).
> > On the other hand, on KDE 3 and Windows, it apparently works fine.
> 
> I concur that the links don't work on ubuntu 10.04 with qt 4.6.2 in a PyQt
> application.  They do work in the kmail kde about box.  It is also working
> on my windows install, but I forget the exact versions and am in linux at
> the moment.

I can confirm this issue for Kubuntu 11.4. It works on other Linux flavours 
(like openSUSE) and Win systems.

Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QModelIndex.internalPointer

2011-05-18 Thread Andrei Kopats
Here is example.
Unfortunately, with it I can reproduce crash only if reference to integer
was passed to createIndex()

In the attachment you can find test script, and execution log. The log also
contains my system info.

Regards,
Andrei Kopats

2011/4/29 Andrei Kopats 

> Hi,
>
> Few days ago QModelIndex.internalPointer was discussed here.
> I also have problems with it. I can't say exactly, when crash occurs, and
> when it doesn't, but, this code generates crash for me:
>
> index = self.createIndex(row, column, True)
> print index.internalPointer()
>
> I tried to pass object (which has other references, so, is not destroyed by
> gc), integer, bool value as internalPoitner, and have crashes in any case.
> I use the latest PyQt and SIP snapshots.
>
> Is there a way for workaround this?
>
> Thanks

a@a-desktop:~/tmp$
a@a-desktop:~/tmp$ uname -a
Linux a-desktop 2.6.38-9-generic #43-Ubuntu SMP Thu Apr 28 15:25:15 UTC 2011 
i686 i686 i386 GNU/Linux
a@a-desktop:~/tmp$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
a@a-desktop:~/tmp$ apt-cache show python-qt4
Package: python-qt4
Priority: optional
Section: python
Installed-Size: 20968
Maintainer: Ubuntu Developers 
Original-Maintainer: Debian Python Modules Team 

Architecture: i386
Version: 4.8.3-2
Replaces: python-qt4-common, python-qt4-dev (<< 4.4.4-3~)
Provides: python2.6-qt4, python2.7-qt4
Depends: libc6 (>= 2.3.6-6~), libgcc1 (>= 1:4.1.1), libpython2.7 (>= 2.7), 
libqt4-declarative (>= 4:4.7.0~rc1), libqt4-designer (>= 4:4.7.0), libqt4-help 
(>= 4:4.7.0), libqt4-network (>= 4:4.7.0), libqt4-script (>= 4:4.7.0), 
libqt4-scripttools (>= 4:4.7.0), libqt4-svg (>= 4:4.7.0), libqt4-test (>= 
4:4.7.0), libqt4-xml (>= 4:4.7.0), libqt4-xmlpatterns (>= 4:4.7.0), 
libqtassistantclient4 (>= 4.6.3), libqtcore4 (>= 4:4.7.0), libqtgui4 (>= 
4:4.7.2), libqtwebkit4 (>= 2.1~really2.0.2), libstdc++6 (>= 4.1.1), python (<< 
2.8), python (>= 2.6), python-support (>= 0.90.0), sip-api-8.1
Suggests: python-qt4-dbg
Conflicts: python-qt4-common
Filename: pool/main/p/python-qt4/python-qt4_4.8.3-2_i386.deb
Size: 5252490
MD5sum: 66d0deacd92f92b1e20c2beefc9e5c25
SHA1: 129293fbc1dc404a82dbaeac7523a06ea9d618ab
SHA256: fc13164fc4e8c0a9c19c87853bfac8ea994371752019527d9a1f861eae355cf2
Description: Python bindings for Qt4
 PyQt4 exposes the Qt4 API to Python. The following modules are supported:
  * QtCore
  * QtGui
  * QtNetwork
  * QtXml
  * QtScript
  * QtSvg
  * QtTest
  * QtAssistant
  * QtWebKit
  * QtOpenGL (in python-qt4-gl)
  * QtSql (in python-qt4-sql)
  * phonon (in python-qt4-phonon)
Homepage: http://www.riverbankcomputing.co.uk/software/pyqt/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m
Task: kubuntu-desktop, kubuntu-mobile-desktop, kubuntu-mobile, 
edubuntu-desktop-gnome, edubuntu-desktop-kde

a@a-desktop:~/tmp$ apt-cache show libqt4-core
Package: libqt4-core
Priority: optional
Section: universe/libs
Installed-Size: 124
Maintainer: Kubuntu Developers 
Original-Maintainer: Debian Qt/KDE Maintainers 
Architecture: i386
Source: qt4-x11
Version: 4:4.7.2-0ubuntu6
Depends: libqtcore4 (= 4:4.7.2-0ubuntu6), libqt4-network (= 4:4.7.2-0ubuntu6), 
libqt4-script (= 4:4.7.2-0ubuntu6), libqt4-xml (= 4:4.7.2-0ubuntu6), 
libqt4-dbus (= 4:4.7.2-0ubuntu6), libqt4-test (= 4:4.7.2-0ubuntu6)
Filename: pool/universe/q/qt4-x11/libqt4-core_4.7.2-0ubuntu6_i386.deb
Size: 8200
MD5sum: 0aae83fbbf10ccdc3aea2923c9d90157
SHA1: 3f8294f65a706af658213c49e945b1f5d7a257ec
SHA256: 077454201595ffd8a92edd92a83670bbc68c4c6c9f557c3e27a2f4a182b872d3
Description: transitional package for Qt 4 core non-GUI runtime libraries
 Qt is a cross-platform C++ application framework.  Qt's primary feature
 is its rich set of widgets that provide standard GUI functionality.
 .
 This is a dummy transitional package to enable installation of other packages
 linked against Qt 4.3 or earlier Qt 4 releases previously shipped.
Homepage: http://www.qtsoftware.com
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Package: libqt4-core
Priority: optional
Section: universe/libs
Installed-Size: 124
Maintainer: Kubuntu Developers 
Original-Maintainer: Debian Qt/KDE Maintainers 
Architecture: i386
Source: qt4-x11
Version: 4:4.7.2-0ubuntu6.1
Depends: libqtcore4 (= 4:4.7.2-0ubuntu6.1), libqt4-network (= 
4:4.7.2-0ubuntu6.1), libqt4-script (= 4:4.7.2-0ubuntu6.1), libqt4-xml (= 
4:4.7.2-0ubuntu6.1), libqt4-dbus (= 4:4.7.2-0ubuntu6.1), libqt4-test (= 
4:4.7.2-0ubuntu6.1)
Filename: pool/universe/q/qt4-x11/libqt4-core_4.7.2-0ubuntu6.1_i386.deb
Size: 8202
MD5sum: c20a7a57ed49039853485a175dd63bc2
SHA1: 42de0f2b70d90320c277b9bde51c7c8e0b0e6dd3
SHA256: 6cd1f5c41e7ca4c4138d3f75f40314ca75388eea25db49fe37aa82644b332a45
Description: transitional package for Qt 4 core non-GUI runtime libraries
 Qt is a cross-platform C++ application framework.  Qt's primary feature
 is its rich set of widgets that provide standard GUI