Results 1 to 3 of 3

Thread: Problem porting Kivio MP on win32 from Qt 3 to Qt 4

  1. #1
    Join Date
    Oct 2006
    Location
    San Francisco, USA
    Posts
    14
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem porting Kivio MP on win32 from Qt 3 to Qt 4

    Hi,

    I'm porting Kivio MP on a win32 platform (Windows XP) from Qt 3 to Qt 4. I ran the qt3to4 porting tool, set up a project in Eclipse 3.2 (using mingw32-make.exe to build), and was happily building and fixing compiler errors *until* getting stuck on the errors below.

    Is it an Eclipse project setting problem or a Qt issue? I'm confused why it's complaining about forward declarations in the Qt code...how can I fix this issue?

    C:/Qt/4.2.1/include/QtGui/../../src/gui/kernel/qwindowdefs.h error: forward
    declaration of `const struct QColor'
    C:/Qt/4.2.1/include/QtGui/../../src/gui/kernel/qwindowdefs.h error: forward
    declaration of `struct QColor'
    error: `color' has incomplete type
    error: invalid use of undefined type `const struct QColor'
    error: invalid use of undefined type `const struct QColor'
    error: invalid use of undefined type `const struct QColor'
    error: invalid use of undefined type `struct QColor'
    error: invalid use of undefined type `struct QColor'
    error: invalid use of undefined type `struct QColor'

    Thanks,
    Amanda

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem porting Kivio MP on win32 from Qt 3 to Qt 4

    Are those the first errors you get about QColor? Maybe the compiler is trying to say, that you have to add #include <QColor> somewhere in your code?

  3. The following user says thank you to jacek for this useful post:

    Amanda (26th October 2006)

  4. #3
    Join Date
    Oct 2006
    Location
    San Francisco, USA
    Posts
    14
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem porting Kivio MP on win32 from Qt 3 to Qt 4

    Thank you for the reply. I was just about to post that I had resolved the issue when I received your message - yes, your suggestion is correct. I was just thrown by the supposed errors in the Qt code.

    Amanda

Similar Threads

  1. Problem in porting Main window on linux
    By jyoti kumar in forum Qt Tools
    Replies: 2
    Last Post: 2nd June 2006, 09:35
  2. problem of porting from windows to linux
    By jyoti kumar in forum Qt Programming
    Replies: 4
    Last Post: 22nd May 2006, 09:42
  3. Porting problem from Qt3 to Qt4
    By Krishnacins in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2006, 15:29
  4. Replies: 16
    Last Post: 7th March 2006, 16:57

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.