PDA

View Full Version : Can't click menubar items / QPixMap doesn't show



richardander
30th December 2008, 10:36
Hello,

I am porting an application from Qt3.3 to Qt4.4 with Qt3support.

The main window can show up and the buttons can work. However, I have the following two problems:

1. the menubar shows and it looks enabled. however, mouse clicks on it and there is no response ( the menu item doesn't pushed down or appearing as selected when click mouse on it. ). I hard -coded to set menubar enabled, it still doens't work. Can anyone let me know what the probelm is?


2. Previously, the QpixMap object can show a image data on screen. Now, the window is pure black. however, it seems all the operation on images still runing at behind. Is there any change in using Qpixmap object in Qt3 and Qt4?

Any help is highly appreciated!

Thank you!

Richard

jpn
30th December 2008, 10:45
Hi,


Could you show the relevant code that setups the menu bar?
Could you show the relevant code that uses / paints the pixmap? In Qt 4 you cannot paint on widgets outside paintEvent().