Results 1 to 9 of 9

Thread: how to use Qt dll in Win32 project

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: how to use Qt dll in Win32 project

    Quote Originally Posted by Fastman View Post
    May be you can show some example ?
    Let's see...

    Qt Code:
    1. class SomeInterface {
    2. public:
    3. virtual ~SomeInterface(){}
    4. virtual int method1() const = 0;
    5. virtual std::string method2(int) = 0;
    6. // etc.
    7. };
    8.  
    9. class MyQtImplementation : public SomeInterface {
    10. public:
    11. MyQtImplementation(...){...}
    12. int method1() const { qDebug() << "Qt here"; return 1; }
    13. std::string method2(int num) { return QString::number(num).toStdString(); }
    14. };
    To copy to clipboard, switch view to plain text mode 
    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.


  2. The following user says thank you to wysota for this useful post:

    Fastman (9th July 2009)

Similar Threads

  1. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 06:34
  2. making qmake create VisualStudio console app project file?
    By akos.maroy in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2008, 15:45
  3. help needed with complicated project
    By Muzz in forum Newbie
    Replies: 12
    Last Post: 15th February 2008, 10:54
  4. Importing qt project to an eclipse workspace
    By isahin in forum Installation and Deployment
    Replies: 2
    Last Post: 28th January 2008, 19:00
  5. compiling a qt project under win32
    By elcuco in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2006, 08:43

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.