Results 1 to 2 of 2

Thread: Can't click menubar items / QPixMap doesn't show

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default Can't click menubar items / QPixMap doesn't show

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Can't click menubar items / QPixMap doesn't show

    Hi,

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

Similar Threads

  1. Items in QListView should sort on Header Click
    By vinnu in forum Qt Programming
    Replies: 14
    Last Post: 10th November 2006, 12:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.