Results 1 to 2 of 2

Thread: qt3to4 - The Qt 3 to 4 Porting Tool - The Journey

  1. #1
    Join Date
    Dec 2010
    Location
    UK
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Post qt3to4 - The Qt 3 to 4 Porting Tool - The Journey

    Hi All
    I took the old project not only made in Qt3 but using std-lib’s as well.
    I used qt3to4 tool but not all the changes made by it are not good for now and I have not experience with it. So please take a loot and if You will have an idea where or how to solve this I would be grateful.
    Qt Code:
    1. FSColor.h
    2. #ifndef __FSColor_h__
    3. #define __FSColor_h__ 1
    4.  
    5. #include "FSTransformObject.h"
    6. #include <q3painter.h>
    7.  
    8. namespace transform {
    9.  
    10. class FSColor : public FSTransformObject
    11. {
    12. public:
    13. FSColor(FSInputStream* aStream);
    14. FSColor();
    15. FSColor(int r, int g, int b, int a = 255)
    16. : Qt::red(r) // Qt:: added by tool and error point
    17. , Qt::green(g) // error: expected class-name before ‘(’ token
    18. , Qt::blue(b)
    19. , alpha(a)
    20. {}
    21. ...
    22. };
    23. }
    To copy to clipboard, switch view to plain text mode 

    I have tried a couple of methods to solve this problem but i am here now.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt3to4 - The Qt 3 to 4 Porting Tool - The Journey

    But what is the problem? If you have "red", "green" and "blue" variables in your class then simply remove those "Qt::" prefixes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Which UML tool do you use?
    By high_flyer in forum General Discussion
    Replies: 10
    Last Post: 31st March 2011, 13:30
  2. Replies: 1
    Last Post: 19th August 2010, 13:10
  3. Grouping of Tool buttons in Tool bar
    By febil in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2009, 11:51
  4. qt3to4
    By rishiraj in forum Newbie
    Replies: 1
    Last Post: 19th December 2008, 10:55
  5. Tool Tip
    By Rakesh_Kumar in forum Qt Programming
    Replies: 9
    Last Post: 3rd October 2008, 13:01

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.