Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27

Thread: no compile error, error on run

  1. #21
    Join Date
    Apr 2007
    Posts
    117
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    84
    Thanked 1 Time in 1 Post

    Default Re: no compile error, error on run

    Quote Originally Posted by wysota View Post
    In what way does it "not fit"? Is it bigger or smaller than the view?
    The scene/view displays the actual size of the image, so if the image is bigger than the view, it wont fit.

    Quote Originally Posted by wysota View Post
    BTW. Are you aware that the view will only have its size determined after it is shown for the first time? Asking for its size before it is shown for the first time will return bogus data... And it seems to be what is happening here.
    Hmmm. Thanks. Didn't know this
    Image Analysis Development Framework Using Qt (IADFUQ)

  2. #22
    Join Date
    Apr 2007
    Posts
    117
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    84
    Thanked 1 Time in 1 Post

    Default Re: no compile error, error on run

    Quote Originally Posted by wysota View Post
    In what way does it "not fit"? Is it bigger or smaller than the view?
    The scene/view displays the actual size of the image, so if the image is bigger than the view, it wont fit. What I wish to do is if the image's bounds are bigger than the graphicsView or the Scene, the image must fit into the view keeping aspectRatio. if the image's bounds are smaller there is no need for fitting the image to the view/scene.

    Quote Originally Posted by wysota View Post
    BTW. Are you aware that the view will only have its size determined after it is shown for the first time? Asking for its size before it is shown for the first time will return bogus data... And it seems to be what is happening here.
    Hmmm. Thanks. Didn't know this. . . . . will be back with this problem soon, still have other problems in this project... And I am running out of time.
    Image Analysis Development Framework Using Qt (IADFUQ)

  3. #23
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    43
    Thanked 21 Times in 21 Posts

    Default Re: no compile error, error on run

    Quote Originally Posted by sincnarf View Post
    . . . . . will be back with this problem soon, still have other problems in this project... And I am running out of time.
    Alas, you could have used chainlink and been done by now...

    You might be interested to know that it is possible to link the (non-gui) chainlink engine into any Qt program and make calls to chainlink from within your C++ code like this

    Qt Code:
    1. chainlink_workspace *WS=new_chainlink_workspace();
    2.  
    3. //...
    4.  
    5.  
    6. //initialize X ...
    7.  
    8. WS->set_variable("my_image","QImage",&QImage);
    9. WS->execute_command("my_image=custom_function(my_image);");
    10. WS->get_variable("my_image","QImage",&QImage);
    11.  
    12. //display X in your app
    To copy to clipboard, switch view to plain text mode 

    Here custom_function would be written in C++ from within the ChainLink GUI.

    Some people might ask -- what's the advantage of doing it this way? Why can't I just link to "custom_function" from within my app? My response -- I can think of at least 50 reasons to use the chainlink approach ...

    But I've bothered you too much with these things... just a suggestion.... good luck with your deadline.

  4. The following user says thank you to magland for this useful post:

    sincnarf (21st September 2007)

  5. #24
    Join Date
    Apr 2007
    Posts
    117
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    84
    Thanked 1 Time in 1 Post

    Default Re: no compile error, error on run

    magland, chainlink seems to be very useful... how is the setup done?

    What imports should I have within my Qt/c++ project?
    While running my Qt/c++ project, is chainlink supposed to be running too? or I only need the imports?
    is #include "chainlink.base.h" the import that I need?
    It seems http://chainlink.sourceforge.net/documentation.html
    is insufficient
    Image Analysis Development Framework Using Qt (IADFUQ)

  6. #25
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    43
    Thanked 21 Times in 21 Posts

    Default Re: no compile error, error on run

    Quote Originally Posted by sincnarf View Post
    magland, chainlink seems to be very useful... how is the setup done?

    What imports should I have within my Qt/c++ project?
    While running my Qt/c++ project, is chainlink supposed to be running too? or I only need the imports?
    is #include "chainlink.base.h" the import that I need?
    It seems http://chainlink.sourceforge.net/documentation.html
    is insufficient
    Yes, I know the docs are insufficient (I like coding more than writing docs, but I do realize the importance of the latter)...

    You would simply link your project to a (non-gui) "chainlink_plugin.dll" library (I assume you are using windows), and chainlink does not need to be running in the background.

    If you want to pursue this, contact me privately, and I'll guide you through the installation and undocumented features. If you have success, then this would help me know how to document these things. Therefore, it could benefit both of us, and others.

    JM

  7. The following user says thank you to magland for this useful post:

    sincnarf (4th October 2007)

  8. #26
    Join Date
    Apr 2007
    Posts
    117
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    84
    Thanked 1 Time in 1 Post

    Default Re: no compile error, error on run

    Quote Originally Posted by magland View Post
    You would simply link your project to a (non-gui) "chainlink_plugin.dll" library (I assume you are using windows), and chainlink does not need to be running in the background.
    Hmmm, I've executed the instruction in the site
    * Finally, if you are compiling from source on Windows, then run:

    > build.bat
    > chainlink.bat
    I searched through my entire chainlink installation and I found no "chainlink_plugin.dll".
    I tried to search it under google, I entered "chainlink_plugin.dll". . . No search results found, where can I possibly acquire this dll. . . Finally, assuming I've finished my project using chainlink, can I get it to run under a linux platform? (because DLLs are for windows only right?)

    already PM'ed you.
    Image Analysis Development Framework Using Qt (IADFUQ)

  9. #27
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    43
    Thanked 21 Times in 21 Posts

    Default Re: no compile error, error on run

    Quote Originally Posted by sincnarf View Post
    Hmmm, I've executed the instruction in the site


    I searched through my entire chainlink installation and I found no "chainlink_plugin.dll".
    I tried to search it under google, I entered "chainlink_plugin.dll". . . No search results found, where can I possibly acquire this dll. . . Finally, assuming I've finished my project using chainlink, can I get it to run under a linux platform? (because DLLs are for windows only right?)

    already PM'ed you.
    Sincnarf,
    This "chainlink_plugin.dll" feature is only contained in the development version of chainlink. If you are serious about pursuing this route, I would guide you through the procedure, sending you the necessary files. Yes, it will also work in linux, although I have not tested this particular feature there - so some tweaking may be necessary.

    Pls contact me by email if you want to purue it... and I will give you step by step instructions.

    JM
    Jeremy dot Magland at gmail dot com

  10. The following user says thank you to magland for this useful post:

    sincnarf (24th September 2007)

Similar Threads

  1. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 16:04
  2. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 21:06
  3. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 05:26
  4. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  5. Can't Compile Tutorial 7
    By Reenen in forum Newbie
    Replies: 10
    Last Post: 9th February 2006, 14:06

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.