Re: [PyKDE] PyQT-3.0 fails to build when both qt 2.x and 3.x are installed

2002-02-14 Thread Phil Thompson

Karl Trygve Kalleberg wrote:
 
 I configured PyQt thus:
 
./configure --prefix=/usr \
 --infodir=/usr/share/info \
 --mandir=/usr/share/man \
 --with-doc-install=/usr/share/doc \
 --with-qt-dir=/usr/qt/3 \
 --with-qt-includes=/usr/qt/3/include \
 --with-qt-libraries=/usr/qt/3/lib \
 --with-x || die
 
 and did make all, which resulted in:
 
 make[3]: Entering directory `/var/tmp/portage/PyQt-3.0/work/PyQt-3.0/qt'
 (cd /tmp;
 PYTHONPATH=/var/tmp/portage/PyQt-3.0/image//usr/lib/python2.0/site-packag
 es:/var/tmp/portage/PyQt-3.0/image//usr/lib/python2.0/site-packages
 /usr/bin/python -O -c import qt) Traceback (most recent call last):
   File string, line 1, in ?
   File
 /var/tmp/portage/PyQt-3.0/image/usr/lib/python2.0/site-packages/qt.py,
 line 44, in ?import libqtc
 ImportError: libqt-mt.so.2: cannot open shared object file: No such file
 or directory make[3]: *** [install-data-hook] Error 1
 
 As far as I can figure, it should look for libqt-mt.so.3, which lives in
 /usr/qt/3/lib, and not libqt-mt.so.2.
 
 I also tried setting LDFLAGS=-L/usr/qt/3/lib and
 CXXFLAGS=-L/usr/qt/3/lib to no avail.
 
 Any ideas ?

Did you re-build sip as well for Qt3?

./configure --with-qt-dir=/usr/qt/3

...should be all you need.

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



[PyKDE] statusBar() in QMainWindow

2002-02-14 Thread Jonathan Gardner

I have a widget that is a subclass of the QMainWindow. I want to put some 
QLabels in the status bar.

I can set the text at the bottom with something like this:

self.statusBar().message('Hello!')

I get a square box if I do something like this: (no text in the box)

label = QLabel(self)
self.statusBar().addWidget(label)
label.setText('Hello!')
label.setEnabled(1)

I noticed my problem was that the lable had to have the status bar for a 
parent, so this works fine.

label = QLabel(self.statusBar())
self.statusBar().addWidget(label)
label.setText('Hello!')

Just in case anyone had similar problems...

Jonathan

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde