Planned maintenance: From Sunday 8th December 10:00 CET there will be changes to try and solve the caching issues that have been experienced. If anyone has a problem connecting after this period then please PM @AndyS or any of the moderators.
@atreidex,
yeah, that will work if the compiler is compatible.
After all, the Qt libraries you use are also build on another system then yours...
Regards
It's telling that the majority of the code examples in that PDF are in Visual Basic, and C++ is treated as a 2nd class citizen in it :-(
The 2nd method (dumpcpp with only an .h) is at least technology from this century so I understand why you prefer it.
Try to see if there's a pattern to the SEG faults, perhaps there's some extra initialization you need to do due to that missing staticMetaObject.
The IDispatch errors are a symptom of inconsistencies in the .tlb file but are glossed over by Visual Basic and C#, but I think they can be fixed with some type coercing, e.g. static_cast<IDispatch*>(ptr)
Good luck!
P.S. There might actually be a 4th alternative, especially if you're only using a subset of that Robot library:
write a "wrapper" COM .dll in C#, I think it's called a CCW (Com Callable Wraper) that exports the stuff you want in a more modern way, which then can be consumed by Qt C++.
Side note for posterity, but I think I found a way to go about it which works better for me and doesn't involve messing around with MSVC.
For whatever reason, downloading the full Pylon SDK package with the viewer and everything doesn't work very well for me and doesn't let the cameras be recognised as such by my device.
However, if I use only a runtime (I used v5.2, but you could probably use a different one too), it works and gets recognised. QCamera now also recognises the camera, though it fails to set proper viewfinder settings and therefore doesn't work. It also finds 4 cameras instead of just one, which I think is a quirk of the driver or something, since OpenCV does the same thing. I would prefer to do everything with Qt and not be dependent on any external framework, so if there's any pointers on how to set proper viewfinder settings that would be much appreciated, but for now this is fine.
What works and does recognise the camera while reading properly from the camera is OpenCV. In order to be used with MinGW, it has to be made from source with make, but I've managed to make it work on my machine. I followed this guide on the subject, and it worked for me after restarting.
Anyway, I finally have something I can work on again, and I'll consider this question solved. Thanks for the help.
@SGaist, Ok, I think I get where you're both going now. I should have a Database handler class with separate queries for reading and writing each table. No need to over-complicate it by trying to abstract the queries themselves. If I'm honest with myself, I'm probably trying to do that because SQL is like that cute girl in high school who intimidates you a little bit. You're a little afraid to talk to her, and if you do work up the courage, you want to get as much done in that one conversation as possible. :-)
@bondrusiek said in Zlib library error | undefinied reference to:
when I use function from zlib like gzopen Compilator gives error message:
undefined reference to 'gzopen'
It's the linker complaining indeed...
Are you sure you have the shared object for Qt zlib library available?
How do you install Qt framework? Is it configured for -qt-zlib? See documentation regarding 3rd party libraries
@jsulm
As @raven-worx suggested, I renamed libtag.dll.a to libtag.a and then I tried with LIBS += -l$$PWD/myTaglib/libtag.a as you said but it still didn't work, here is what I got:
Even though I had libtag.a in my myTaglib folder but the linker said "cannot find..."
Sorry for the late reply, CLIPS is a rule-based programming language, its interface "clips v6.4" is a command-line interface. So my task is to design a Qt GUI to better represent the output from CLIPS.
Currently, I am facing issues with the importing of clips library into Qt VS. In sourceforge, a CLIPSwrapped library is provided, however, I am not sure how to "import" this wrapped library in Qt VS such that I can call the CLIPS functions in my Qt main.cpp. Please let me know on what I should do. Thank you.
Hi,
This the source package, you have to built it in order to use it
MinGW build
Visual Studio 2008 build
Visual Studio 2010 build
You can use 1 after you built it, and 3 to 4 directly in Qt Creator provided that you installed the corresponding compilers.
Yes, you can have multiple versions of Qt in parallel no problem with that.
No, they will not. Up to VS2015, there's no compatibility between Visual Studio versions. VS2017 is the first one that is backward compatible with VS2015.
Also note that, if your really need to work with Qt 4, you should at least go with Qt 4.8.7 which is the latest and last version of the 4 series. Even more important, Qt 4 has reached end of life a long time ago, you should rather start with Qt 5.
Sorry, Qt Creator IDE debugger CAN show the current Fortran variables values...
I was trying to see a string parameter, but I forgot that is variable type is a pointer to a C string array...
All working...all ok...
Exactly, why we have to include this:
QWheelEvent wheelEvent( QPoint( 5, 5 ), we->delta(),
we->buttons(), we->modifiers(),
we->orientation() );
QPoint( 5, 5 ) is pos or global pos?
What is pixelDelta? What does mean that it contains the scrolling distance in pixels
on screen?
@JKSH Yes, I created two simple console applications and added required libraries to them. Compiler keys are identical. I checked carefully. A one project have a mistake, and another doesn't have For example, a project with subprojects have this error, but QT Widgets does not have (but not always). Heisenbug?
@gregoryjithin The only suggestion (besides the correct one from @Pablo-J-Rogina - why don't you ask in correct forum? Your question/problem has no relation to Qt) I have is to do what the error message suggests: you need the OpenSSL libraries. Download them and put them into same directory where wsdl2h.exe is...
Hi @SGaist,
My .png is also transparent expect the border of the image. For my button I have tried setting the button to transparent using setStyleSheet. It is still the same.
Upon further evaluation, the labels are put at the major tick marks, so the real question is how to change the physical spacing of the major tick marks. I'm not displaying the minor tick marks, but it appears that physical space is being allocated for them. I need to eliminate this physical spacing.
Managed to fix this by using:
install_name_tool -change /usr/local/lib/gcc/8/libgcc_s.1.dylib
@executable_path/../Frameworks/libgcc_s.1.dylib
/Applications/myApp.app/Contents/Frameworks/libgomp.1.dylib
libgomp.1.dylib was originally pointing to an older version of gcc inside /usr/local/lib/gcc
Thanks for your help!