Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • Library suggestion

    2
    0 Votes
    2 Posts
    862 Views
    SGaistS

    Hi,

    Please don't post the same question in multiple sub-forums. One is enough

    "Duplicate":http://qt-project.org/forums/viewthread/32565/

  • Can't compile qwtplot3d-0.2.7 against Qt 4.8.4

    2
    0 Votes
    2 Posts
    2k Views
    A

    Hi..long time already..But did you solve it?

    I could manage to link it to GL.h and GLU.h so I could solve for the errors you are getting.

    But after it is solved, I cannot move ahead. I am being returned with a dll file..which when i link to my project says its corrupt.

    Any help in this regard will be very great.. thank you

    Regards
    Alok

  • 0 Votes
    30 Posts
    13k Views
    R

    Hi SGaist,

    after getting a bit tired refitting the Mandelbrot Example to my needs I asked this question at StackOverflow. It turns out that there are some issues the way the example uses threads. I don't know if I could have saved my code but I was getting depressed so I recoded the way somebody pointed me out at StackOverflow and this worked instantly and also avoids image conversion as i can use the opencv namendWindow.

    @//create new thread
    QThread* thread = new QThread;

    //init camera with guid, raw color capture, vga format and 50fps
    cameraCapture = new CLEyeCameraCapture(winName, folder, userID, guid, CLEYE_COLOR_RAW, CLEYE_VGA, 50);
    cameraCapture->moveToThread(thread);

    connect(thread, SIGNAL(started()), cameraCapture, SLOT(StartCapture()));
    connect(cameraCapture, SIGNAL(finished()), thread, SLOT(quit()));
    connect(cameraCapture, SIGNAL(finished()), cameraCapture, SLOT(deleteLater()));
    connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
    connect(ui.pushButton_startLogging, SIGNAL ( clicked() ),this,SLOT( activateLogging() ) );
    connect(ui.pushButton_stopLogging, SIGNAL ( clicked() ),this,SLOT( deactivateLogging() ) );
    @

    I tried to follow this "example.":http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/

    Here is the "Question on SO.":http://stackoverflow.com/questions/18594528/create-thread-in-qdialog-and-emit-signals-to-qdialog-in-qt

    Thank you for your help. Now i avoided the freezes. It might be of interest for people who using any conversion from IplImage to QImage: non of the conversions are fast enough for realtime (I did not measure wether the conversion or the displaying method is slowing down the process).

    Thank you anyway for your help. I guess it is wise for anybody who rebuilds this to use their original code and put it in a Worker which then gets moved to a QThread.

  • 0 Votes
    3 Posts
    2k Views
    T

    It took a while (on top of the while before, and that before, ...) but I just ran two scripts I wrote to test out the Python-support. So far, things look mostly good. A minor problem is that I want my application to be deployable without anybody needing to install additional software, so I have to ship a big chunk of Python-related libraries with it. And so far I have not found a way to at least hide them in a sub-folder of my program.

    The header file of my simple wrapper currently looks like this:
    @class ScriptEngine
    {
    public:
    enum ScriptingLanguage{Auto = 0, Python = 1, Unknown = 1000};
    static void init();
    static void reinit();
    static void quit();

    static QVariant run_function(const QString &file, const QString &function, const QList<QVariant> &vars, ScriptingLanguage lang = Auto); static void run_script(const QString &file, ScriptingLanguage lang = Auto);

    private:
    static QVariant convertObject(void *obj);
    static void *convertVariant(const QVariant &var);
    static ScriptingLanguage recognizeLanguageFromFileName(const QString &file);
    static QString pathToPythonModule(QString path);
    };@

    Inside the corresponding .cpp-file are about 350 lines of code, mostly extremely simple (two big switches, lots of error-checking). With a bit of cleaning up and ironing out the kinks, this somewhat simple wrapper will serve me perfectly. If anybody ever would like to obtain the code, answer this post, I'll get a mail and come back to you. But first, I want to polish things a little bit.

  • How to Build/Compile other c++ projects in qt

    12
    0 Votes
    12 Posts
    4k Views
    U

    ok, I will try that....
    Thank you very much

  • 0 Votes
    4 Posts
    8k Views
    T

    I imagine that the divide by zero is happening in your c++ code and not the matlab code. I haven't tried this in a Compiler generated dll from C++ code but here is what happens in MATLAB:
    @

    n = int16(5)

    n =

    5

    d = int16(0)

    d =

    0

    q = n/d

    q =

    32767

    intmax('int16')

    ans =

    32767
    @

    Check anywhere in your C++ code that you are doing division. Maybe posting your code would help...

  • Implementing Botan in Qt 5.1.1

    2
    0 Votes
    2 Posts
    2k Views
    M

    Hi,

    in the QtCreator sources you find a file named botan.pri.

  • Opencv and qt 5.1 integration [SOLVED]

    6
    0 Votes
    6 Posts
    4k Views
    niqtN

    I have also configured $PATH=/home/myhome/Qt5.1.1/5.1.1/gcc/bin:$PATH

  • 0 Votes
    12 Posts
    6k Views
    SGaistS

    If you are building with Qt 4 you don't have the widgets module

    You're welcome !

  • Trouble with SDL <SOLVED>

    3
    0 Votes
    3 Posts
    2k Views
    SGaistS

    Hi and welcome to devnet,

    Great you found out and shared ! Could you also update the thread's title to solved so other forum users may know a solution has been found :)

  • Opencv in Qt

    8
    0 Votes
    8 Posts
    4k Views
    SGaistS

    Since you're on linux you can take advantage of pkg-config

  • 0 Votes
    1 Posts
    3k Views
    No one has replied
  • 0 Votes
    1 Posts
    758 Views
    No one has replied
  • Painting QT5 window on Win32 HWND

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS

    Hi and welcome to devnet,

    In Qt 5 you have the qtwinextras repository for windows platform specific code like QWinWidget, you could try to see if you find it there.

    Hope it helps

  • Widget Placement/Resize on MainWindow Resize

    5
    0 Votes
    5 Posts
    4k Views
    P

    Hi,
    I have proble:
    I would like to use mouse to resize QWidget which have set parent = MainWindow like it have set parent = 0 . How I can do this?

  • [CLOSED] app executable can't find plugins

    5
    0 Votes
    5 Posts
    2k Views
    X

    yes i sent an email! however they answer every 3 days !!
    i could solve some part of it by creating a sub-directory of appPath/crypto/crypto and copying the plugins inside it. now when i run this on another machine it is working properly but inside qt i just have access to qca-pkcs11
    and QCA::pluginDiagnosticText() tells me:
    qca-ossld2.dll: failed to load: Cannot load library C:/QtSDK/Desktop/Qt/4.7.4/mingw/plugins/crypto/qca-ossld2.dll:
    qca-pkcs11d2.dll: (class: pkcs11Plugin) loaded as qca-pkcs11
    thanks for your concern :-)

  • Qt 4.8.4 on MAC with openssl 0.9.8 Crash

    13
    0 Votes
    13 Posts
    6k Views
    G

    It seems we were running into this bug running qt 4.8.4 and mac osx 10.6:

    https://bugreports.qt-project.org/browse/QTBUG-15344?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

  • 0 Votes
    7 Posts
    3k Views
    SGaistS

    Yes, this started with Qt 5

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    945 Views
    JKSHJ

    Is your picture set to public in Photobucket?