Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • 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.

  • [Solved] Gsoap with nokia Qt SDK problems

    13
    0 Votes
    13 Posts
    12k Views
    A

    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
    A

    Right, ok.

  • 0 Votes
    3 Posts
    6k Views
    U

    Thanks very much for your answer !

  • Measuring a painted area

    1
    0 Votes
    1 Posts
    908 Views
    No one has replied
  • GSOAP problem in wsdl2h command with WCF&#63;!

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved]RealTimePlot component

    7
    0 Votes
    7 Posts
    6k Views
    T

    bq. Hey, you may want to try my QCustomPlot component:
    http://www.workslikeclockwork.com/index.php/components/qt-plotting-widget/
    Has full documentation and easy learning curve. It currently plots graphs, parametric curves, bar charts and statistical box plots. If that’s not enough, you can always subclass the central “plottable” class to make it show anything you like. It supports four axes with linear or logarithmic scale, reversed axes, automatic tick labels, rotated tick labels, automatic margins, filling, a legend, and much much more.

    I looked at your work and been in contact with you earlier on your homepage.

    You have done a great work but I have solved my earlier problems with qwt so thats no need to change it.

  • 0 Votes
    9 Posts
    7k Views
    K

    Hi All.

    At last!
    The Nokia cloning repository QSerialDevice 2.0 to codereview.qt-project.org

    Now the whole development will be there.

    Developers can get a clone of this:
    $ git clone ssh://codereview.qt-project.org:29418/playground/qtserialport.git

    We ask all interested to take part in the development of the project.

    More
    "this":http://wiki.qt-project.org/Code_Reviews
    and
    "this":http://wiki.qt-project.org/Setting_up_Gerrit

  • 0 Votes
    2 Posts
    2k Views
    L

    Hi.

    I am not experienced with gsoap, but I would like to learn something with this.

    Can you provide a simple example ?

    so I wil be able to reproduce your problem ?

    It looks interesting

    best regards.

  • At wits end: SAPI + Qt = Fail

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Icons library

    2
    0 Votes
    2 Posts
    4k Views
    L

    FamFamFam is a good and free icon library: "http://www.famfamfam.com/":http://www.famfamfam.com/

  • [Solved]Align scrollbar

    7
    0 Votes
    7 Posts
    4k Views
    T

    OK thanks Uwe
    Maybe I can reach my goal if I use the panner in qwt?