Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Why QDoc don't work, it's really confusing.

    Unsolved qdoc
    26
    0 Votes
    26 Posts
    8k Views
    F
    @mrjj Qt 5.12.4 (GCC 9.1.0, 64 bit) installed on MSYS.
  • What happened to the QGraphicsSceneMouseEvent::button() function?

    Unsolved
    6
    0 Votes
    6 Posts
    469 Views
    YosvanisY
    @sgaist The version is Qt opensource-windows-x86-5.13.0.
  • Is there a fix for Qt-Raspi EGL/GLES names mismatch?

    Solved
    6
    0 Votes
    6 Posts
    463 Views
    R
    It's working now. The problem was linux-rasp-pi3-g++'s qmake.conf file. If we're building Qt for RPi3 we need to create a new qmake.conf based on linux-rasp-pi-g++ and replace the build flags with those from linux-rasp-pi3-g++. The fix is described in this guide.
  • Shared Data with QVector

    Solved
    3
    0 Votes
    3 Posts
    362 Views
    beeckscheB
    @kshegunov I'm sorry, the example i wrote works fine. I found the mistake in my algorithm, the input buffer was recreated, instead of the entries ... input = QVector<fftw_complex>(12); // this doesn't work! ... Thanks anyway! EDIT: To complete the answer, the FFTW library has a "New-Array Execution" function, where the input and output buffer can be set when executing the plan. And with QVarLengthArray you can handle the arrays easily with high performance. QVarLengthArray won't check if the data is shared.
  • Missing ingredients and build steps in qmake generated Visual Studio project

    Unsolved
    2
    0 Votes
    2 Posts
    237 Views
    aha_1980A
    Hi @kakyoism Running qmake -project fails with complaints about environment setup. This was solved by adding qmake -project only creates a stub. You have to edit it by hand afterwards to get a functional project file. Setting up the environment is nothing anyone else can do for you, don't you agree? And deployment is a necessary step on every platform, I agree that this could be a bit more automated (like a make deploy step). But unfortunately we don't have it. I feel that they could be easily fixed in qmake with its generated projects. As Qt is switching to CMake, qmake will only get fixes from now on. Adding more functionality is quite unlikely. Regards
  • How to get a picture from QString in Qt

    Solved
    23
    0 Votes
    23 Posts
    3k Views
    M
    So it turns QString into a picture to translate QString AppCore::getImage(QString addressFile) { QImage myImage(addressFile); QByteArray bArray; QBuffer buffer(&bArray); buffer.open(QIODevice::WriteOnly); myImage.save(&buffer, "JPEG"); QString image("data:image/jpg;base64,"); image.append(QString::fromLatin1(bArray.toBase64().data())); QImage testImage(image); qDebug()<<"myImage.size() : "<<myImage.size(); return image; }
  • How to map a Horizontal slider to zoom in a map created using QCustomPlot

    Unsolved
    1
    0 Votes
    1 Posts
    173 Views
    No one has replied
  • 0 Votes
    1 Posts
    556 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Error by adding items in a QTableWidget using "for"

    Solved
    5
    0 Votes
    5 Posts
    524 Views
    F
    ohhh yeah it worked thanks man!!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Signals/Slots: GUI + Plugin Interface (API)

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    F
    @mrjj perfect! Thank you! You are great!
  • How to save image (about 36 mb) to db via QSqlQuery?

    Unsolved
    9
    0 Votes
    9 Posts
    910 Views
    W
    @august-wiener said in How to save image (about 36 mb) to db via QSqlQuery?: 36 mb for image is not so much. For a file, 36 MB is not too much. For a single field in a relational database, 36 MB is extremely unusual. You will probably have a lot more luck saving the image to a file, and just retaining the filename in the database as a short string. This is the much more common way to do it. The SQL database isn't really designed around storing large binary blobs, and neither are the associated libraries.
  • OpenCV 4.1.1 Imread() & Imwrite() Crashes Program ?

    Solved opencv imread imwrite
    23
    0 Votes
    23 Posts
    10k Views
    Pablo J. RoginaP
    @r-p-h said in OpenCV 4.1.1 Imread() & Imwrite() Crashes Program ?: now everything is working fine. so please don't forget to mark your post as solved! Thanks.
  • Slack Channel

    Solved
    5
    0 Votes
    5 Posts
    968 Views
    W
    The "cpplang" Slack is quite active with C++ developers, and it has a Qt channel. The Qt channel specifically isn't super active, but there are always a few folks around. https://cppalliance.org/slack/
  • QUndoView::QListView how to disable some item?

    Unsolved
    4
    0 Votes
    4 Posts
    495 Views
    SGaistS
    And I don't think you are going to be able to do that with QUndoView as it is currently implemented. You should check its implementation and create your own View/Model combo that fits your need. This is going to be faster.
  • Error in webassembly compilation

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    S
    5.13.1 is not released as an stable Qt version and I'm using 5.13.0 (latest stable version) so I applied the patch. Thanks!
  • Architecture doubt: Plugin AND Standalone together

    Unsolved
    8
    0 Votes
    8 Posts
    716 Views
    mrjjM
    @fem_dev Hi Case 2 is not possible with the DLL/so files alone. It has to be loaded via some other app using QPluginLoader/QLibrary
  • Subclass QUiLoader

    Unsolved
    16
    0 Votes
    16 Posts
    1k Views
    3
    The problem is officially a bug: bug 1070
  • SQLite DB at Runtime

    Solved
    18
    0 Votes
    18 Posts
    2k Views
    S
    @oshio Thank You, you'ra are very usefull!!!