Results 1 to 20 of 33

Thread: Lets Dialog with Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    qtoptus Guest

    Default Re: Lets Dialog with Qt

    I installed the binary version 4.8.2 for the same compiler VS 2008.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lets Dialog with Qt

    how do you build your app, how do you link it with qt?

    you will not be able to statically link since you have not built static qt libraries.

    and you say you use sdk 4.8.1 earlier in the thread, but now you have installed 4.8.2 binaries? They should be compatible anyway, if built with same compiler.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    qtoptus Guest

    Default Re: Lets Dialog with Qt

    I use VS 2008 and the Qt VS add in latest version. So I create a Qt library, using the Qt Project Wizard, and then add a Dialog box control to the project.

    Yeah I decided later to update thinking of this might solve the problem.

  4. #4
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lets Dialog with Qt

    'qt libraries' are qtcore4.dll etc. You do not create those from qt project wizard. You either install those, or build them from source.

    What you are doing is building qt 'derivative' works/libraries, I believe.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  5. #5
    qtoptus Guest

    Default Re: Lets Dialog with Qt

    I have the Qt SDK installed so I'm using the the Qt dlls from the Qt\4.8.2\bin directory. HOWEVER, now I'm suspicious that the VS Add-in wizard is linking to the wrong version using it's own DLL static link libraries Qt LIBs, while I'm using the installed SDK version.

    Another possibility that VS is screwing the hell of the build. I run windows 7 64 bit, the called application (Lightwave 3D) is 32 bit, the VS 2008 is 32 bit, and not sure what bits Qt is built for...

    I will try rebuilding from source and using static linking instead, as the entire DLL thingy smells fishy to me...

  6. #6
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lets Dialog with Qt

    Quote Originally Posted by qtoptus View Post
    I have the Qt SDK installed so I'm using the the Qt dlls from the Qt\4.8.2\bin directory. HOWEVER, now I'm suspicious that the VS Add-in wizard is linking to the wrong version using it's own DLL static link libraries Qt LIBs, while I'm using the installed SDK version.

    Another possibility that VS is screwing the hell of the build. I run windows 7 64 bit, the called application (Lightwave 3D) is 32 bit, the VS 2008 is 32 bit, and not sure what bits Qt is built for...

    I will try rebuilding from source and using static linking instead, as the entire DLL thingy smells fishy to me...
    You haven't build static libraries so how can the addin link to any static library?
    The addin doesn't have its own libraries so how can the addin do that?
    What on earth is a 'dll static link libraries Qt LIBS'?

    That whole second sentence is gibberish.

    the Qt installed libraries and the libraries that are made when compiling from source are 32bit. Even if you build with a 64bit compiler, they are 32bit. There are no 64bit qt libraries afaik.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  7. #7
    qtoptus Guest

    Default Re: Lets Dialog with Qt

    I tried this time linking to Qt static libraries, built from the source. It failed to build. A hell of unresolved external symbols.

    What on earth is a 'dll static link libraries Qt LIBS'?
    Read, or google.

    That whole second sentence is gibberish.
    I've no idea what you are talking about.

    Anyway it seems that I'm wasting time trying to do something supposed to be trivial but "something" there is broken.

  8. #8
    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: Lets Dialog with Qt

    Quote Originally Posted by qtoptus View Post
    Read, or google.
    I also have no idea what this sentence means since DLL resolves to "Dynamic-Link Library" so mixing DLL and "static" in once sentence is a bit like talking about a round square.

    If you want to have a static build, then you need:
    a) a static version of every library you want to use (including Qt)
    b) a static C/C++ runtime (optionally, I think)
    c) link your application against a) and b) statically.

    If you don't follow this approach then the only thing that is "broken" is your way of trying to solve the problem which is indeed trivial and is well documented both in Qt manual and all over the Internet. Of course you need to be familiar with all the caveats and pitfalls of static and dynamic libraries and mixing them together including the way symbols are getting resolved or not (which probably heavily depends on the compiler you are using). If you do not have such knowledge and are not willing to learn it then the best solution is to rely on the defaults, which in this situation is dynamic linking of everything everywhere and dumping required libraries to a well-known place where the system's dynamic linker can find them when resolving symbols for your shared objects.
    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.


  9. #9
    qtoptus Guest

    Default Re: Lets Dialog with Qt

    I also have no idea what this sentence means since DLL resolves to "Dynamic-Link Library" so mixing DLL and "static" in once sentence is a bit like talking about a round square.
    My bad I meant to say statically linking to DLLs vs. run-time loading - LoadLibrary(...)

    Unfortunately the system is picky about finding the function in the DLLs...something incorrect going on, could be me or something else, and I mean here the LW program not liking the idea of a 3rd party GUI library.

  10. #10
    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: Lets Dialog with Qt

    Quote Originally Posted by qtoptus View Post
    Unfortunately the system is picky about finding the function in the DLLs...
    The rules of resolving symbols are identical regardless if the library is loaded upon startup of the application (i.e. library was linked) or runtime (i.e. library was not linked).
    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.


  11. #11
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lets Dialog with Qt

    Quote Originally Posted by qtoptus View Post
    I tried this time linking to Qt static libraries, built from the source. It failed to build. A hell of unresolved external symbols.

    Read, or google.

    I've no idea what you are talking about.

    Anyway it seems that I'm wasting time trying to do something supposed to be trivial but "something" there is broken.
    1) I still don't believe that you have any static qt libraries to link against.
    2) I think you need to learn what some of the phrases you are using actually mean.

    For instance - 'statically linking a dll' - that is gibberish. Linking with a dll does not incorporate that dll code into your app/library so it is not statically linked.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  12. #12
    qtoptus Guest

    Default Re: Lets Dialog with Qt

    1) I still don't believe that you have any static qt libraries to link against.
    You don't have to. But learn something before you throw some nonsense statements. There's an option that allows you to build Qt as static libraries.

    2) I think you need to learn what some of the phrases you are using actually mean.
    Don't take it hard on yourself. If you feel you are insulted somehow, then it's because your...complex.

    For instance - 'statically linking a dll' - that is gibberish. Linking with a dll does not incorporate that dll code into your app/library so it is not statically linked.
    Learn how to talk to people professionally. Your gibberish statements make you look like an idiot.

  13. #13
    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: Lets Dialog with Qt

    Could you sum up please what you have done so far step by step? I feel a bit lost here since first you were talking about a plugin with Qt DLLs which apparently worked at some point and then stopped working again after you added something to your program (so I'm assuming you were still using DLLs). Then at some point you started asking about static linking and at this moment I got lost.
    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.


  14. #14
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lets Dialog with Qt

    Quote Originally Posted by qtoptus View Post
    You don't have to. But learn something before you throw some nonsense statements. There's an option that allows you to build Qt as static libraries.
    I know that, but not once have you mentioned linking with libs, only linking with dlls. Building static Qt libs does not give you dlls... Thanks for teaching me, though

    Quote Originally Posted by qtoptus View Post
    Learn how to talk to people professionally. Your gibberish statements make you look like an idiot.
    It's funny how you write that with no sarcasm
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  15. #15
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Lets Dialog with Qt

    It's funny how you write that with no sarcasm


    Or irony.

    I have yet to make sense of what the OP is trying to do, what he has done, or what he thinks he needs to do. If at some point something was working, then he should have stayed on that course instead of trying to "fix" it with all this nonsense about statically linking to DLLs. Sounds to me like there is a compile-time option that is not being correctly specified, with the result that classes and methods are not being exported with the correct mangled names. (The old __declspec(dllimport) / __declspec(dllexport) thing).

Similar Threads

  1. Replies: 6
    Last Post: 18th January 2012, 20:21
  2. How to access objects of parent Dialog from Child Dialog .
    By ranjit.kadam in forum Qt Programming
    Replies: 4
    Last Post: 18th April 2011, 06:39
  3. closing child dialog closes parent dialog
    By sparticus_37 in forum Newbie
    Replies: 2
    Last Post: 28th May 2010, 19:46
  4. How to blur parent dialog when child dialog is displayed
    By abhilashajha in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2009, 13:01
  5. Lets build a network
    By sunil.thaha in forum General Discussion
    Replies: 5
    Last Post: 16th April 2007, 07:42

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.