Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189925 - app-office/lyx: QFileDialog "broken" if x11-libs/qt:4 is built without png useflag
Summary: app-office/lyx: QFileDialog "broken" if x11-libs/qt:4 is built without png u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: TeX project
URL: http://bugzilla.lyx.org/show_bug.cgi?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 13:03 UTC by Jochen Riehm
Modified: 2008-10-29 09:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot of file open dialog (Bildschirmphoto2.png,25.48 KB, image/png)
2007-10-08 09:04 UTC, Jochen Riehm
Details
The mentioned test programm (filedialog.cpp,151 bytes, text/plain)
2007-10-09 17:31 UTC, Jochen Riehm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Riehm 2007-08-23 13:03:27 UTC
When opening a file the directory select box does not allow to choose a directoy. Also behind it are several buttons, all but one only showing when mose is moved over them. They do not have any text and don't do anything.

The buttons "Documents" and "Examples" behind the above mentioned buttons work as expected.

Reproducible: Always

Steps to Reproduce:
1. Open Lyx
2. Choose File/Open or click respective button
3. Try to change directory using the directory select box

Actual Results:  
Items in directory select box are grayed out. Choosing one does not have any effect.

Expected Results:  
Items in directory select box are black. Choosing one displays content of directory in main area of dialog box.

I'll try to give the relevant build information:

LyX 1.5.1 emerged 2007-08-23 about 11:00:00 CEST

package.mask:

=sys-kernel/linux-headers-2.6.20
#>app-office/lyx-1.4.4
=dev-libs/expat-2.0.1

make.conf:

CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
LINGUAS="de"
FEATURES="parallel-fetch ccache"
USE="-gnome alsa cdr cups qt qt3 dvd foomaticdb gd gif gtk hal java kde mp3 nls \
     pdf samba X xine bitmap-fonts truetype-fonts type1-fonts unicode nls"
CCACHE_SIZE="2G"

package.use:

app-misc/mc slang
sys-apps/pciutils -zlib
x11-libs/qt opengl

dev-db/mysql -berkdb

www-servers/apache apache2

www-client/mozilla-firefox -moznoxft

app-text/poppler-bindings qt3

=dev-lang/php-4* apache2 bcmath cgi cli concurrentmodphp ctype curl dbg doc expat imap -java-internal ldap ming mssql mysql nls odbc pcre pdf session unicode xml xmlrpc zip zlib
=dev-lang/php-5* apache2 bcmath cgi cli concurrentmodphp ctype curl curlwrappers dbg doc expat imap -java-internal ldap ming mssql mysql nls odbc pcre -pdf pdo reflection session soap spl unicode xml xmlrpc xls -zip zlib
Comment 1 pavel sanda 2007-09-19 17:13:57 UTC
can not reproduce it here (x86,qt-4.3.0)
Comment 2 Jochen Riehm 2007-10-08 09:04:17 UTC
Created attachment 132889 [details]
Screenshot of file open dialog

This is a Screenshot of the file open dialog with the mentioned problems. I know it doesn't help with reproduction, but maybe clarifies the problem.

If you need more information about my setup please let me know which information and how I can obtain it. Thank you for your work!
Comment 3 pavel sanda 2007-10-08 15:47:45 UTC
i propose you come with this on lyx list. maybe somebody another meet this problem too.
Comment 4 Jochen Riehm 2007-10-09 16:26:41 UTC
(In reply to comment #3)
> i propose you come with this on lyx list. maybe somebody another meet this
> problem too.
> 
Filed as LyX-Bug #4264. See URL.
Comment 5 Jochen Riehm 2007-10-09 17:31:23 UTC
See Message on LyX-Bug:

This one seems to be a Qt4 bug on gentoo. Jochen, please try compiling
the attached test program and report back whether you see the same problem.

I tried it:

Yes, I see the same problem. Also I see the repeated message 

QPixmap::scaleWidth: Pixmap is a null pixmap

on sdtdout.

Reassing to Qt4?
Comment 6 Jochen Riehm 2007-10-09 17:31:53 UTC
Created attachment 133018 [details]
The mentioned test programm
Comment 7 pavel sanda 2007-10-09 20:40:48 UTC
what is your version of qt4 ?
Comment 8 Jochen Riehm 2007-10-10 07:54:26 UTC
(In reply to comment #7)
> what is your version of qt4 ?
> 
*  x11-libs/qt
      Latest version available: 4.3.1-r1
      Latest version installed: 4.3.1-r1
      Size of files: 42,108 kB
      Homepage:      http://www.trolltech.com/
      Description:   The Qt toolkit is a comprehensive C++ application development framework.
      License:       || ( QPL-1.0 GPL-2 )
Comment 9 pavel sanda 2007-10-10 08:04:18 UTC
mine was 4.3.0.
Comment 10 pavel sanda 2007-11-03 20:06:14 UTC
4.3.1-r1 is also ok for me.
Comment 11 Jochen Riehm 2007-11-06 12:27:25 UTC
Now I have the icons. The only difference I can imagine, is that I set the global use flag "png" and did an emerge --newuse --update world and it compiled four packages, don't know exactly which.

Maybe the icons are in PNG format? Don't know if anything can be done in the ebuilds to make sure that flag is set or something similar.
Comment 12 pavel sanda 2007-11-07 19:14:26 UTC
if there is no receipt how to repeat and it works for you, what about to close the bug now?
Comment 13 Jochen Riehm 2007-11-08 09:21:04 UTC
(In reply to comment #12)
> if there is no receipt how to repeat and it works for you, what about to close
> the bug now?
> 
I think the receipt would be compile qt with -png.
Comment 14 pavel sanda 2008-01-17 00:21:28 UTC
have you tried it?
anyway, this has nothing to do with lyx and tex herd is of no help here.
Comment 15 Alexis Ballier gentoo-dev 2008-02-26 13:14:48 UTC
(In reply to comment #6)
> Created an attachment (id=133018) [edit]
> The mentioned test programm
> 

compile with:
g++ filedialog.cpp -o filedialog `pkg-config --cflags --libs QtCore QtGui`
(just for reference)


Here it works just fine:
[ebuild   R   ] x11-libs/qt-4.3.4  USE="cups dbus gif glib jpeg mng opengl png postgres qt3support sqlite3 ssl tiff xinerama zlib -accessibility -debug -doc -examples (-firebird) -mysql -nas -nis -odbc -pch -sqlite" INPUT_DEVICES="-wacom"


Reassigning to qt herd: could you please have a look at it ? I have never seen such a problem, perhaps you would know what's causing it. If the test program fails then it's probably not lyx's fault.

Comment 16 Jochen Riehm 2008-02-26 13:26:20 UTC
(In reply to comment #15)
> [ebuild   R   ] x11-libs/qt-4.3.4  USE="cups dbus gif glib jpeg mng opengl png
> postgres qt3support sqlite3 ssl tiff xinerama zlib -accessibility -debug -doc
> -examples (-firebird) -mysql -nas -nis -odbc -pch -sqlite"
> INPUT_DEVICES="-wacom"
> 
> 
> Reassigning to qt herd: could you please have a look at it ? I have never seen
> such a problem, perhaps you would know what's causing it. If the test program
> fails then it's probably not lyx's fault.
> 
I also think it's a qt-Problem. My assumption would be that the problem would occur if above use flags had "-png".
Comment 17 Alexis Ballier gentoo-dev 2008-08-29 22:18:56 UTC
This will probably need to be rechecked with the split qt4 layout and which useflag causes it to be broken.
Also, maybe it can be closed as invalid since it could be the normal behavior of QFileDialog: not working nicely if png support is disabled. I dont know qt enough for that.
Comment 18 Carsten Lohrke (RETIRED) gentoo-dev 2008-08-29 23:21:04 UTC
libpng is a mandatory dependency in x11-libs/qt-gui. Use flag gone, problem, too. :)

Bug can be closed, once Qt 4.4.1 went stable.
Comment 19 Ben de Groot (RETIRED) gentoo-dev 2008-10-06 13:11:59 UTC
From a Qt point of view this bug is invalid. It is completely expected behaviour when compiling qt without png support. Therefore packages should add a QT4_BUILT_WITH_USE_CHECK="png" or use an eapi-2 style use dependency, when said behaviour is unwanted.

Reassigning to tex herd for that reason.
Comment 20 Alexis Ballier gentoo-dev 2008-10-29 09:14:43 UTC
(In reply to comment #19)
> From a Qt point of view this bug is invalid. It is completely expected
> behaviour when compiling qt without png support. Therefore packages should add
> a QT4_BUILT_WITH_USE_CHECK="png" or use an eapi-2 style use dependency, when
> said behaviour is unwanted.

added