Results 1 to 10 of 10

Thread: Configure QT vs build plugins manually!!!

Hybrid View

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

    Default Re: Configure QT vs build plugins manually!!!

    If you ask if something should be done in a particular way and few lines later you write that it works for you if you do it that way, then... well... then you're answering your own question - that's why I said so. Plugins are plugins - they don't have to be built at the same time as the rest of the framework, just make sure they use the same build key (if you don't know what it is, then it probably means they have the same build key) and you don't mix debug and release versions.

  2. #2
    Join Date
    Jan 2007
    Posts
    209
    Thanks
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Configure QT vs build plugins manually!!!

    wysota, you completely misunderstood him. Maybe you skimmed over it too fast.
    "Is there any difference between this two methods? Is there any difference between code that I write in my application?"
    That is the question, not "does my app work? yes it works" as you imply.

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

    Default Re: Configure QT vs build plugins manually!!!

    Quote Originally Posted by VireX View Post
    wysota, you completely misunderstood him.
    I think you misunderstood me, maybe I wasn't clear enough
    "Is there any difference between this two methods? Is there any difference between code that I write in my application?"
    That is the question,
    Yes, I know that.

    not "does my app work? yes it works" as you imply.
    I did not imply anything like that.

    If you want to screw in a screw and you ask whether you should do it with a screwdriver or with a knife (or your teeth or whatever) and you ask which one you should use and right away you say that your screws are screwed in correctly, then I'll say that you have just answered the question yourself - if it works, then the method is ok - maybe not the best possible one, but may be the best method in particular circumstances.

    If you build Qt and you want to build SQL support as well, then you can do it while building Qt, but if you want to build it afterwards, you can do it afterwards - the concept of plugins implies that you don't need to rebuild the whole application (Qt framework here) to introduce new functionality (particular SQL driver here) to the application.

    Of course using the "-qt-sql-mysql" switch you won't build a plugin, but rather compile the support directly into Qt, but in such situation you obviously can't do it afterwards and I assume the author is aware of that (otherwise his applications wouldn't work). Just remember that when you compile particular SQL support directly into Qt (not as a plugin), then all applications using that library will require that SQL client library (libmysqlclient here) even if the application itself doesn't use SQL at all (so you can end up with an application that displays a sum of two integers that needs MySQL, PostgreSQL and even other libraries). That's another advantage of using plugins. But it all applies to plugins in general, not to Qt or MySQL.

  4. #4
    Join Date
    Jan 2007
    Posts
    209
    Thanks
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Configure QT vs build plugins manually!!!

    He was saying, he has two screw drivers, and they both did the job good, but couldn't figure out which screw-driver is better.

  5. #5
    Join Date
    Oct 2006
    Posts
    13
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Configure QT vs build plugins manually!!!

    OK, lets forget about what I wrote ...
    Just as I said my questions, thinkings wasn't clear enough because I got too many
    questions in the same time and I do apologize for that.
    Let me try on this way...

    My absolute interests are databases and building forms to access data.
    I know how to build forms, how to access data using forms, mostly I understand principles of QT C++ programming ...

    But what I don't know is use of dlls, libs,.. configure such things...
    So thats why I want to ask you following questions...

    FIRST CASE

    1. I want to configure my QT with MySQL, PostgreSQL.
    I got QT installed, MySQL and PostgreSQL installed in following locations:
    C:\PSQL, C:\MySQL. I set variables to point to specific directories...
    I didn't make any debug libraries, so I just got a fresh install.

    What are the steps that I should do?
    (build debug libraries, configure manually, build plugins...)
    What do you recommend?
    What do I get as the result of this operations?
    Which files should I use with my .exe file?


    SECOND CASE

    2. I got QT installed, MySQL and PostgreSQL installed in following locations:
    C:\PSQL, C:\MySQL. I set variables to point to specific directories...
    Suppose I clicked on the build debug libraries, so my QT works but without
    MySQL and PostgreSQL support.

    What are the steps that I should do?
    (configure, build plugins,...)
    What do I get as the result of this operations...
    (dll files, libs,... what?)
    Which files should I use with my .exe file?
    (plugins, or some other dll files,...)



    I made a couple of small application but I don't know how I made them work.
    I have used configure, build plugins,... so somehow I got some files, place them into the directory where .exe is placed an they work. Not just on my computer.
    And thats why I want to know what is the appropriate way to do so...
    Sometimes miracle happen!

Similar Threads

  1. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 08:32

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.