Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • windows version off AppImage ?

    Unsolved
    2
    0 Votes
    2 Posts
    711 Views
    Chris KawaC

    To achieve a single executable that "just runs" on Windows you usually statically link your app and add any needed resources (images, scripts etc.) using the resource system. No special app is needed for that.

    That's the standard way to do it. It's the easiest, the fastest and makes least problems to the user.
    If you can't do that for any reason you can also create a self extracting archive using one of the popular packers, e.g. 7zip (example here).

  • alternative to ilmerge but for c++?

    Unsolved
    11
    0 Votes
    11 Posts
    4k Views
    mrjjM

    Hi
    For a tool to work like ilmerge for c++, it would have to have static Qt for any platform supported. Huge amount of work so its not likely it will ever happen.

  • REST Api for QT app

    13
    1 Votes
    13 Posts
    30k Views
    SGaistS

    Something like Cutelyst

  • print simple Sqlite statement....

    Solved
    2
    0 Votes
    2 Posts
    710 Views
    F

    solved with add datediff.next(); :

    datediff.prepare("SELECT date FROM (SELECT(julianday('now') - julianday(?)) AS date)"); datediff.addBindValue(dateinsteng2); datediff.exec(); datediff.next(); int tsn = datediff.value(0).toInt();
  • 0 Votes
    2 Posts
    622 Views
    K

    @Feng-Yuhang

    Hi and welcome to devnet forum

    To my understanding is the QVtkWidget part of https://www.vtk.org/ basically only using Qt libs. Probably your question is better raised in the forum or mailing list there.

    Otherwise when the problem occurs in a Qt source part of your own, you need to post some source snippet showing how you are using Qt and where the problem may be.

  • how to select where xxx=? sqlite c++

    Solved
    5
    0 Votes
    5 Posts
    4k Views
    F

    @JonB Hello, you are right, I used your solution, It will be much better.

    QSqlQuery query; query.prepare("SELECT * FROM table WHERE columnx =?"); query.addBindValue(yyyy); query.exec();

    thank you very much!!!

  • MinGw-w64 Download

    Unsolved
    10
    0 Votes
    10 Posts
    11k Views
    JKSHJ

    @Mylavarapu.Manikanta said in MinGw-w64 Download:

    -->QT was installed along with required GCC compiler(Here GCC 5.3.1).So no need of worry about host pc GCC compiler versions.

    Good!

    -->But when I compiling a sample application "Can not find -lGL" error is showing.
    -->It seems like compiler cannot find the required library.

    Yes, a required library is missing.

    If you search this forum (or even the Internet) for this error message, you should be able to find out which library you need.

    -->My host pc configuration is: Redhat Linux 7.2,64-bit.

    Your error message is quite common for many different Linux distros, not just Red Hat.

  • 0 Votes
    1 Posts
    360 Views
    No one has replied
  • Intall Google Test plugin in QT creator IDE in windows 10

    Moved Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    aha_1980A

    Hi @Muthu,

    AFAIK there is no "Google Test plugin" in Creator.

    Creator has a Autotest plugins, which supports QTest and Google Test: http://doc.qt.io/qtcreator/creator-autotest.html

    So I guess you have to install Google Test yourself, create a project that uses Google Test and then you can use the Autotest plugin to run the tests.

    Regards

  • Login System

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    JonBJ

    @inik
    Apart from the fact that you should indeed hash (one-way, symmetric) the password for storage (and comparison) as @Pablo-J-Rogina says, when you write:

    QSqlQuery loginQuery("SELECT * FROM 'logindetails' WHERE studentID='" + enteredUsername + "' AND password='" + enteredPassword + "';"); if (!username.compare(enteredUsername) && (!password.compare(enteredPassword)))

    by the time that query returns a row you already know both the username & password have matched since you pass them in the query, so you only need to check whether 1 row or 0 rows were returned...

    For hashing, from Qt you can probably use http://doc.qt.io/qt-5/qcryptographichash.html#details. So your process is:

    When the user specifies his password, hash it and stored the hashed to the database. When a user tries to logon and specifies a proposed password, hash that and pass it to query like you have to see if it is same as a hash in the database row. So you never pass the unhashed/clear text of the password to/from the database.
  • SQLite return 100 is not found?

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    JonBJ

    @filipdns

    It's OK to be French! Sorry, I had no idea this is what you were wanting!

    So you're not avoiding "an empty row", what you're avoiding is "0 rows returned". Your solution will then return 2 rows when there is indeed a matching row to return, and then you use a second LIMIT to eliminate the extra row.

    Further, the first part of your query returns a row with 3 columns, while the "unioned" row specifies just one column. Slightly surprised SQL allows this: would have thought you would need SELECT 100, NULL, NULL. But if it works for you that's fine.

  • XBee

    Unsolved
    2
    0 Votes
    2 Posts
    657 Views
    SGaistS

    Hi and welcome to devnet,

    How is it related to Qt ?

  • Sum sqlite

    Unsolved
    3
    0 Votes
    3 Posts
    810 Views
    F

    yes it was the question, how to do

  • Rowid cleaned after delete or insert SQLITE

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    F

    @6thC Thank you I will go to see

  • How to install QtRpt for Ubuntu 16.04

    Moved Unsolved
    2
    0 Votes
    2 Posts
    770 Views
    VRoninV

    @Mahesh-Arrajella said in How to install QtRpt for Ubuntu 16.04:

    where to download

    http://www.qtrpt.tk

    How to install

    After the download, check readme.pdf at the "How to use it" section

  • 0 Votes
    7 Posts
    889 Views
    F

    I used the same variable for an other query and it's working...
    I'm little bit lost but I will check tomorrow it's too late for today ;-)

  • function with argument in JS file called in my QML fail

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    JonBJ

    @filipdns
    Yes indeed, well done! Here instead of trying to use column as a direct JS property reference now you are using [column] as a property accessor and passing the string "trip_time" as the name of the property. In JS object.property refers to the same as object["property"].

  • Connecting Creator and choregraph

    Moved Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    K

    @Movenciought33 said in Connecting Creator and choregraph:

    thanks a lot for all the answers i've got here. you are really helpful people. i was just wondering if i may come back with questions to ask you in case i would have some? thanks!

    No worries you are certainly still welcome in the forum.

    Sometimes it is not clear for a user where the actual problem is and they seek advice with the wrong focus on "blaming" Qt.
    Therefore, you may still come back with questions related to Qt and also when you are not sure, if it is a Qt problem.
    Don't be personally offended when someone pushes back the answer that this is not a Qt related. For most of us English is not the mother language and sometimes you can see also some cultural differences. This may result is some harsh tone.

  • Best library for Windows video capture.

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    S

    Hi guys

    thanks for your help.
    We decided to not support Windows in the end.

  • 0 Votes
    3 Posts
    2k Views
    manikandanM

    I have overridden the autoscale as follows

    autoScale(int maxSteps,
    double &x1, double &x2, double &stepSize) const
    {
    QwtInterval interval(x1, x2);
    interval = interval.normalized();

    interval.setMinValue(interval.minValue() - lowerMargin()); interval.setMaxValue(interval.maxValue() + upperMargin()); if (testAttribute(QwtScaleEngine::Symmetric)) { interval = interval.symmetrize(reference()); } if (testAttribute(QwtScaleEngine::IncludeReference)) { interval = interval.extend(reference()); } if (interval.width() == 0.0) { interval = buildInterval(interval.minValue()); } stepSize = QwtScaleArithmetic::divideInterval(interval.width(), qMax(maxSteps, 1), base()); if (!testAttribute(QwtScaleEngine::Floating)) { interval = align(interval, stepSize); } x1 = 0.0; x2 = interval.maxValue(); if (testAttribute(QwtScaleEngine::Inverted)) { qSwap(x1, x2); stepSize = -stepSize; }

    and this serves my purpose