On 05/28/2010 08:25 PM, Vincent Lebreil wrote:
> @Samu: I made that image (48x48 png)
> @Helge: I had no time to create a small project. But I'll try to do it
> so you can reproduce it. If you can't wait, just create a QAction and
> add it to a QToolBar: here's a piece of code:
> QToolBar toolBar = new QToolBar(mainWindow);
> toolBar.setObjectName("toolBar");
> toolBar.setIconSize(new QSize(48, 48));
>
> toolBar.setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle.ToolButtonTextUnderIcon);
>
> mainWindow.addToolBar(com.trolltech.qt.core.Qt.ToolBarArea.TopToolBarArea,
> toolBar);
>
> actionOpen = new QAction(mainWindow);
> actionOpen.setObjectName("actionOpen");
> actionOpen.setIcon(new QIcon(new
> QPixmap("classpath:img/48x48/open.png")));
> actionOpen.setShortcut("Ctrl+O");
>
> toolBar.addAction(actionOpen);
>
> @all: I'm running on linux Kubuntu 10.04 64bits
> picture qt4.5 http://uploadpie.com/yDvYO: qtjambi for linux 64 from
> maven repository (packaged by Dusan)
> picture qt4.6 http://uploadpie.com/y58GG: qtjambi for linux 64 from
> git repository (built from master branch)
>
>
Tested this code, and my icons looks just fine on a Ubuntu 32bit 10.04
setup. Cannot understand that it has something to do with 64bit though...
Try making a sample in 4.6 C++ Qt code and see if you have the same
problems then. since you're running kubuntu, it may be some resolving
issues with the system paths to Qt libraries, just a wild guess...
Helge F.
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest