Results 1 to 13 of 13

Thread: QObject / QEvent compilation problem after reinstallation?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Dec 2006
    Posts
    160
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QObject / QEvent compilation problem after reinstallation?

    Folks, i'm proud to publically anounce that all this topic was nothingness
    Just the solution if any Photoshop developpers decide to use QT in a plugin:
    - Go to your Photoshop SDK source tree,
    - Open the file PITerminology.h, and go to line #1009 which says:
    Qt Code:
    1. #define eventFilter 'Fltr'
    To copy to clipboard, switch view to plain text mode 
    This line defines a macro called "eventFilter", which obviously is misunderstood at compile time if you're using QT...

    There is an easy workaround if you dont use event filters in your code YET, just rename the macro like this:
    Qt Code:
    1. #define photoshopEventFilter 'Fltr'
    To copy to clipboard, switch view to plain text mode 
    Then in your code (Related to Photoshop eventFilters), dont use "eventFilter" but "photoshopEventFilter" as previously defined.
    Since we're very lucky, this macro isn't actually used in any other Photoshop's SDK file.

    It will solve the very anoying errors In fact i had corrected this error a long time ago, but since i reinstalled my PC (and Photoshop SDK), it was here again... and i didnt remember.

    After i find this kind of conflict errors, am i supposed to do some feedback to TrollTech or something?

    Thanks all for your help!

    Pierre.
    [EDIT:] You can get another similar error, if you get any error which points to QTabletEvent definition in QEvent.h, you have to use the same workaround for the keyState name in PITerminology.h, or just change the "keyState" variable name in the QEvent.h.
    Last edited by hickscorp; 10th May 2007 at 23:17.

Similar Threads

  1. qt4 compilation problem
    By aegis in forum Installation and Deployment
    Replies: 9
    Last Post: 22nd February 2007, 23:10
  2. qevent problem
    By amulya in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2006, 11:51
  3. Problem with Destructor of QObject
    By mikro in forum Qt Programming
    Replies: 5
    Last Post: 9th July 2006, 19:05
  4. Problem and solution about QSA 1.2.0 compilation
    By Dwarf007 in forum Installation and Deployment
    Replies: 5
    Last Post: 7th March 2006, 16:52
  5. subclassing/inheritance QObject problem
    By cbeall1 in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 17: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
  •  
Qt is a trademark of The Qt Company.