Custom Query (301 matches)


Show under each result:

Results (43 - 45 of 301)

Ticket Resolution Summary Owner Reporter
#306 wontfix PNG-format application icon renders badly Alex Taylor

It's common to use an image (e.g. from Qt resources) of an internally-supported format such as PNG for the frame icon. Indeed, this seems to be the only way to be able to access the image in other contexts within the application (see ticket #305).

Unfortunately, it renders very badly in this case, with ugly scaling and broken alpha-blending.

In theory, it should be possible to avoid scaling by providing an icon of the exact size. For example:

QIcon icon;
icon.addFile(":/images/editor.png", QSize( 40, 40 ), QIcon::Normal, QIcon::On );
icon.addFile(":/images/editor_mini.png", QSize( 20, 20 ), QIcon::Normal, QIcon::On );
icon.addFile(":/images/editor_vga.png", QSize( 32, 32 ), QIcon::Normal, QIcon::On );
icon.addFile(":/images/editor_vga_mini.png", QSize( 16, 16 ), QIcon::Normal, QIcon::On );
setWindowIcon( icon );

This works (and looks) fine when rendering the image in an explicit context inside the program, such as via MessageBox::about().

However, when used as the application icon, either the wrong image size is being selected, or it's being re-scaled somehow (why or to what, I cannot tell).

Screenshots to be attached.

#307 invalid qtconcurrentfilter.h generates -Wunused-local-typedefs warning when compiling with GCC 4.9.2 Alex Taylor

Compiling a Qt4 application with the current RPM/YUM GCC ( generates the following warning (often multiple times):

g++ -c @CXXFLAGS.qe.rsp @DEFINES.qe.rsp @INCPATH.qe.rsp -o mainwindow.obj mainwindow.cpp
In file included from e:\usr\include/QtCore/QtCore:124:0,
                 from e:\usr\include\QtGui/QtGui:3,
                 from mainwindow.cpp:23:
e:\usr\include/QtCore/qtconcurrentfilter.h: In function 'QtConcurrent::ThreadEngineStarter<void> QtConcurrent::filterInternal(Sequence&, KeepFunctor, T (C::*)(U))':
e:\usr\include/QtCore/qtconcurrentfilter.h:109:47: warning: typedef 'Iterator' locally defined but not used [-Wunused-local-typedefs]
     typedef typename Sequence::const_iterator Iterator;

This is quite inconvenient as certain IDEs or code editors (including mine) flag this as a problem and pop up a message during build.

#308 wontfix Glyph substutition does not work for certain character sets. Alex Taylor

In principle, when rendering Unicode text, characters that are not supported by the current font will be substituted from a font which does support them. (Whether Qt4 does this via fontconfig or something else I'm not certain.)

This does work for many languages, including Cyrillic, Hebrew and Greek. However, it does not work with some other languages, in particular Japanese and Chinese: all relevant characters are rendered with the font's .notdef glyph.

Consequently, when reading text that includes such languages, it is necessary to set the font explicitly to one which supports those languages. Unfortunately, not all applications allow this (especially web browsers which use page-defined fonts).

You can easily see this by opening a page like in the Arora browser. The list of languages down the left-hand side shows several with substituted characters (specifically: Georgian, Korean, Japanese and Chinese).

Note: See TracQuery for help on using queries.