Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • PySide + Sqlite = Driver not loaded

    3
    0 Votes
    3 Posts
    4k Views
    K

    welcome to devnet

    Good to know that your problem has been solved even so the community was in your case not of much help ;-)

    Special thanks also for sharing the reasons of your problem. This allows at least others to learn from your case.

  • 0 Votes
    1 Posts
    4k Views
    No one has replied
  • Unable to compile qextserialport on Mac OS10.6

    7
    0 Votes
    7 Posts
    4k Views
    J

    Ok, I think I fixed it. I ended up deleting all of my old version of this project and all of the build directories. Once I did this, it compiled. Now need to test the ability to run.

    Ken

  • 0 Votes
    7 Posts
    4k Views
    L

    Judging from the symbol names I would say that you are trying to link dynamically against a static version of the library. Make sure QEXTSERIALPORT_BUILD_SHARED is not defined.

  • QextSerialPort build problem

    4
    0 Votes
    4 Posts
    3k Views
    D

    QextSerialPort 1.2-beta1 has been released, perhaps you can give a try to it.

    http://code.google.com/p/qextserialport/wiki/QextSerialPort_1_2_Beta1

  • Draw on top of xoverlay using qt

    2
    0 Votes
    2 Posts
    3k Views
    S

    Please... any help would be highly appreciated!!!!

  • Anyone tried QTitanGrid and QTitanRibbon?

    5
    0 Votes
    5 Posts
    3k Views
    D

    I see, thanks Andre.

    Anyone else can share information? :)

  • QGLViewer - Depthbuffer z distance

    2
    0 Votes
    2 Posts
    2k Views
    T

    I finally found the answers after a couple of hours of googling:
    bufferToCamera[zb_, near_, far_] := far * near / (zb * (far - near) - far);
    where zb = z from buffer
    bufferToCamera= z from camera
    http://olivers.posterous.com/linear-depth-in-glsl-for-real

  • Qt Static and 3rd party static library

    3
    0 Votes
    3 Posts
    5k Views
    S

    Tried the 2nd way and it works perfectly, thank you !
    I also built Qt static with the above steps and everything works fine !

  • [solved] incomplete data read by qserialdevice

    39
    0 Votes
    39 Posts
    22k Views
    H

    thank kuzulis, i am getting stuck with this problem (incomplete data read) and i found the solution only in this site. thanks again

  • 0 Votes
    13 Posts
    7k Views
    S

    Alright, so I didn't find the problem, but I found a solution. Instead of deriving SerialPort in a Port class, my Port class is just a wrapper for SerialPort containing a pointer to my instance of SerialPort and having all the methods I use like that :
    @bool Port::open( SerialPort::OpenMode mode )
    {
    return port->open( mode );

    }@

    I don't know if this is a "good" solution, but it works.

    Anyway, thanks to kuzulis and koahnig for the help ! =)

  • Qt and libQxt

    3
    0 Votes
    3 Posts
    4k Views
    L

    main.cpp :
    @
    #include "https.h"
    #include <QtGui>
    #include <QApplication>
    #include <QxtSslServer>
    #include <QSslKey>
    #include <QSslCertificate>
    #include <QxtSslServer>
    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    https w;
    w.show();
    QxtHttpsServerConnector conectar;
    if( conectar.tcpServer()->autoEncrypt())
    qDebug()<<"auto encript enabled";

    conectar.tcpServer()->setLocalCertificate("/usr/lib/ssl/mycert.pem"); conectar.tcpServer()->setPrivateKey("/usr/lib/ssl/mykey.pem"); //cheking certificate and key QSslCertificate mycer=conectar.tcpServer()->localCertificate(); QSslKey keycert=conectar.tcpServer()->privateKey (); qDebug()<<mycer.subjectInfo(QSslCertificate::Organization); qDebug()<<mycer.subjectInfo(QSslCertificate::CommonName); qDebug()<<mycer.subjectInfo(QSslCertificate::LocalityName); qDebug()<<mycer.subjectInfo(QSslCertificate::OrganizationalUnitName); qDebug()<<mycer.subjectInfo(QSslCertificate::CountryName); qDebug()<<mycer.subjectInfo(QSslCertificate::StateOrProvinceName);

    if(keycert.isNull())
    qDebug()<<"key doesnt work";
    else
    qDebug()<<"Key is ok";

    QxtHttpSessionManager *session=new QxtHttpSessionManager(); session->setPort(8080); session->setConnector(&conectar); myservice service(session); session->setStaticContentService(&service); if(session->start()) qDebug()<<"server is running"; conectar.tcpServer()->listen(QHostAddress::Any, 8080 ); if(conectar.tcpServer()->isListening()) qDebug()<<"esta listening"; qDebug()<<"error:" <<conectar.tcpServer()->errorString () <<" code: "<<conectar.tcpServer()->serverError () ; qDebug()<<"ip host: "<<conectar.tcpServer()->serverAddress (); return a.exec&#40;&#41;;

    }

    @

    service.h :

    @
    #include <QxtHttpServerConnector>
    #include <QxtHttpSessionManager>
    #include <QxtWebSlotService>
    #include <QxtWebPageEvent>
    #include <QxtWebServiceDirectory>
    #include <QxtAbstractWebSessionManager>
    #include <QxtWebRequestEvent>
    #include <QxtWebContent>
    #include <QxtHttpsServerConnector>
    #include <QFile>
    class myservice : public QxtWebSlotService
    {
    Q_OBJECT;
    public:
    myservice(QxtAbstractWebSessionManager * sm, QObject * parent = 0 );
    public slots:
    void index(QxtWebRequestEvent* event);

    };
    @

    service.cpp:
    @
    #include "service.h"

    myservice::myservice(QxtAbstractWebSessionManager * sm, QObject * parent ): QxtWebSlotService(sm,parent)
    {
    }

    void myservice::index(QxtWebRequestEvent* event)
    {
    qDebug()<<"llego aca";
    postEvent(new QxtWebPageEvent(event->sessionID, event->requestID, "<h1>It Works!</h1>"));
    }
    @

    if in the main I chance QxtHttpsServerConnector conectar;
    by QxtHttpServerConnector conectar; it works fine. else
    the web browser do not finish of load. but I need https not http.
    I need help please.

  • 0 Votes
    5 Posts
    3k Views
    K

    2 luggi,

    see examples in /tests/guiapp/optionsdialog.cpp

  • Problème d’installation Qwt

    2
    0 Votes
    2 Posts
    1k Views
    G

    Hello and welcom to DevNet!

    Can you post your question in English please. We do have some native language subforums, but unfortunately there's no French forum amongst it.

    Just edit your original post (the link is on the right side of the post, under your username). Thanks!

  • Unable to compile QSerialDevice on Qt 4.7.4

    16
    0 Votes
    16 Posts
    9k Views
    D

    That's it. I'm also working with branch 2.0 now. Thx very much!

  • How to use QuaZIP for zipping a file

    3
    0 Votes
    3 Posts
    7k Views
    C

    Thank you for your prompt reply.

    I am just searching for a solid, simple example to start. Because at the moment I have only an abstract idea what I can achieve with QuaZIP. I just want to save a .txt file in a .zip, nothing else.

  • Another OpenCV 2.3.1 Integration Thread....

    9
    0 Votes
    9 Posts
    6k Views
    A

    I am now using your include path method which shortened the library codes, but the x86 libraries only bring me as far as getting the "Press <Return> to close this window..." command prompt window as shown above. Using x64 will give me the same "undefined reference to cv::..." errors as before. Assuming the 32 bit libraries are incompatible with my Windows 64 which gives me empty command prompt, something must be wrong with the 64bit libraries?

    @INCLUDEPATH += C:\opencv\build\include \

    BASE_PATH = C:\opencv\build\gpu\x86 LIBS += -L$$BASE_PATH\lib \ -lopencv_highgui231 \ -lopencv_core231

    @

  • Weird problem with setupUI call

    16
    0 Votes
    16 Posts
    13k Views
    P

    Hi.

    I'd like to up this post : doesn't seem to have any solution here and, as it happens, i have the exact same problem : the setupUi method crashed without apparent reason.
    And this only happen on Windows and on Release mode (the bug isn't reproductible on Linux, or on Windows in debug mode).
    I'm using Qt4.8.0, and I'm compiling with the MinGW provided with QtCreator.

    Here is some code from the header :

    @#ifndef LEVELEDITOR_H
    #define LEVELEDITOR_H

    #include <QWidget>
    #include "texturemanager.h"
    #include "objectmanager.h"

    namespace Ui {
    class LevelEditor;
    }

    class LevelEditor : public QWidget
    {
    Q_OBJECT

    public:
    explicit LevelEditor(QWidget *parent = 0);
    ~LevelEditor();

    void Save(const QString& filepath); bool Load(const QString& name, const QString& filepath); void Test(const QString& workdir);

    public slots:
    void TextureAdded(QString);

    private slots:
    void PickNewTexture(void);
    void TextureListIndexChanged(int);
    void TextureListUpdated(void);

    void CreateNewAnimation(void); void AddAnimationToList(QString); void ObjectListIndexChanged(int); void CreateNewObject(void); void ObjectListUpdated(void); void LandscapeChanged(QString); void UpdateLevelSize(void); void AddEntity(void); void DelEntity(void);

    private:
    Ui::LevelEditor *ui;
    TextureManager _textureManager;
    ObjectManager _objectManager;
    AnimationManager _animationManager;
    QString _currentLevel;
    };

    #endif // LEVELEDITOR_H@

    And here is the constructor :

    @LevelEditor::LevelEditor(QWidget *parent) : QWidget(parent), ui(new Ui::LevelEditor)
    {
    qDebug() << "test1";
    ui->setupUi(this);
    qDebug() << "test2";
    }@

    And here goes the application output :
    @test1
    The program has unexpectedly finished.
    C:\Users\Lovestospooge\Documents\Editor-build-desktop-Qt_4_8_0__4_8_0__Release\release\Editor.exe exited with code -1073741819@

    If, during the past half year, you found something that may cause this, I'd be glad to know.
    If not, then you're not the only one who met with this problem. And it may be interesting to get to the bottom of it :) !

  • 0 Votes
    6 Posts
    4k Views
    sajis997S

    Hi,

    The issue is solved. I had to make the following addition to my elliptical graphics item class:

    [code]
    setFlag(ItemSendsGeometryChanges);
    [/code]

    Thanks
    Sajjad

  • Qextserialport can't open port

    9
    0 Votes
    9 Posts
    8k Views
    K

    bq. @kuzulis I finally got it to build yesterday, but still have a problem to link it to a project (but that’s got nothing to do with the lib, more with my lacking knowledge). If I could make a suggestion, it would be to specify in the readme that you need QtSource to build it… or at least the qwineventnotifier_p.h from QtSource.

    Emm .. solution to this issue "here":http://developer.qt.nokia.com/forums/viewreply/70489/

    In principle, this is not a problem. Yes, in the current version Qt4.x QWinEventNotifier class is private, so the library must be compiled as the link above (the same applies to the repository QextSerialPort on the google.code). But in the future Qt5 this class will be made ​​public so that there should be no problems.

    Therefore, for a transitional (temporary) version of QSerialDevice 2.0 I do not write this "feature" to the ReadMe. The reason is that QSerialDevice 2.0 is frozen, and the future development of Gerrit moved to a QtSerialPort.

    Details, see example "this":http://qt-apps.org/content/show.php?content=112039.