Results 1 to 3 of 3

Thread: How to get Qt3 methodes in Qt 5.

  1. #1
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default How to get Qt3 methodes in Qt 5.

    Hi All
    I'm using 4.5.3 version. In mky code i've added a methode QPaintDevice::x11AppVisual().
    x11AppVisual() is a Qt 3 member function, and its supported by Qt 4.5.3. But while compiling the code i'm getting the error like
    error: ‘x11AppVisual’ is not a member of ‘QPaintDevice’

    How to solve this.???

    PS : http://doc.trolltech.com/4.3/qpaintdevice-qt3.html

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to get Qt3 methodes in Qt 5.

    add:
    Qt Code:
    1. QT += qt3support
    To copy to clipboard, switch view to plain text mode 
    to your pro file
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to get Qt3 methodes in Qt 5.

    Quote Originally Posted by faldżip View Post
    add:
    Qt Code:
    1. QT += qt3support
    To copy to clipboard, switch view to plain text mode 
    to your pro file
    Thanx. it worked.
    and also we ve to add
    Qt Code:
    1. #include <Qt3Support>
    To copy to clipboard, switch view to plain text mode 
    to our headed file.

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.