Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.6k Posts
QtWS25 Last Chance
  • QextSerialPort build problem

    16 Nov 2011, 11:37
    0 Votes
    4 Posts
    3k Views
    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

    18 Mar 2012, 19:25
    0 Votes
    2 Posts
    3k Views
    Please... any help would be highly appreciated!!!!
  • 0 Votes
    5 Posts
    3k Views
    I see, thanks Andre. Anyone else can share information? :)
  • QGLViewer - Depthbuffer z distance

    9 Mar 2012, 19:39
    0 Votes
    2 Posts
    2k Views
    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

    8 Mar 2012, 21:48
    0 Votes
    3 Posts
    5k Views
    Tried the 2nd way and it works perfectly, thank you ! I also built Qt static with the above steps and everything works fine !
  • 0 Votes
    39 Posts
    24k Views
    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
    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

    6 Mar 2012, 14:57
    0 Votes
    3 Posts
    4k Views
    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
    2 luggi, see examples in /tests/guiapp/optionsdialog.cpp
  • Problème d’installation Qwt

    1 Mar 2012, 23:15
    0 Votes
    2 Posts
    2k Views
    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

    8 Jan 2012, 19:26
    0 Votes
    16 Posts
    9k Views
    That's it. I'm also working with branch 2.0 now. Thx very much!
  • How to use QuaZIP for zipping a file

    23 Feb 2012, 12:26
    0 Votes
    3 Posts
    7k Views
    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.
  • 0 Votes
    9 Posts
    6k Views
    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

    6 Jun 2011, 18:25
    0 Votes
    16 Posts
    13k Views
    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
    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

    15 Feb 2012, 17:14
    0 Votes
    9 Posts
    9k Views
    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.
  • [Solved] Gsoap with nokia Qt SDK problems

    1 Nov 2010, 13:49
    0 Votes
    13 Posts
    12k Views
    Hey there. I've followed all those steps and whenever I try to include the gsoap headers in a class other than the main.cpp i get this error when running the project in Qt Creator: mwldsym2.exe: Multiply defined symbol: struct Namespace * namespaces (?namespaces@@3PAUNamespace@@A) in mwldsym2.exe: files moc_maxintervaltimer.o, maxintervaltimer.o
  • 0 Votes
    5 Posts
    3k Views
    Right, ok.
  • 0 Votes
    3 Posts
    6k Views
    Thanks very much for your answer !
  • Measuring a painted area

    13 Feb 2012, 10:17
    0 Votes
    1 Posts
    923 Views
    No one has replied