Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Why is there no documentation on Qt3DWindow?

    Unsolved
    4
    0 Votes
    4 Posts
    282 Views
    Christian EhrlicherC
    @Hamza-Umair Then why did you asked in the first place? And what's so hard to fill a bug report?
  • Can anyone help me how to remove these errors while debugging a c++ file

    Unsolved
    8
    0 Votes
    8 Posts
    578 Views
    Christian EhrlicherC
    @Shriansh As already told you by @JonB you forgot to implement this function so the linker can not find it.
  • CMake deploy api and QtMultimedia backend

    Unsolved
    7
    0 Votes
    7 Posts
    644 Views
    MesrineM
    @Mesrine To deploy QtMultimedia in windows one has to pass -multimedia to windeployqt. From this, it says Since Qt 6.7, you can use DEPLOY_TOOL_OPTIONS to pass additional options to the underlying deployment tool. This only has an effect if the underlying deployment tool is either macdeployqt or windeployqt. This should deploy qtmultimedia and backends using the CMake API like qt_generate_deploy_qml_app_script( TARGET ${example} OUTPUT_SCRIPT deploy_script DEPLOY_TOOL_OPTIONS -multimedia ) install(SCRIPT ${deploy_script} COMPONENT examples) This will work for Windows but not for Macos. But one has to use some if the conditionals.
  • Problem with std::map management

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    S
    @Christian-Ehrlicher said in Problem with std::map management: @SamiV123 said in Problem with std::map management: just possibly non portable Which contradicts the c++ idea. Maybe so but that's not how real life works. In real life practically every C++ program is only as portable as the developers intended, i.e. it only compiles and runs on the platforms targeted by the developers.
  • Error building Qt 5 from Git

    Unsolved build error git
    3
    0 Votes
    3 Posts
    912 Views
    Christian EhrlicherC
    See https://bugreports.qt.io/browse/QTBUG-90395
  • What's the best way to animate an image

    Unsolved
    6
    0 Votes
    6 Posts
    438 Views
    S
    You could also look into using a style engine with SVG support. for example kvAntum.
  • Cant select Qt Creator in Ubuntu Select Application Menu

    Unsolved
    5
    0 Votes
    5 Posts
    309 Views
    C
    @JacobNovitsky If you want to undo what you did then just do so. You did keep a backup, right?
  • UpdateLayeredWindowIndirect failed when clicking on the menu icon

    Unsolved
    1
    0 Votes
    1 Posts
    298 Views
    No one has replied
  • [Qt3D] QPlaneMesh only one side is visible?

    Unsolved
    2
    0 Votes
    2 Posts
    342 Views
    U
    @ymhsieh Although it may be better to create your own Material, we were able to display both sides of QPhongMaterial with the following code. // Material auto material = new Qt3DExtras::QPhongMaterial(rootEntity); auto cullFront = new Qt3DRender::QCullFace(); cullFront->setMode(Qt3DRender::QCullFace::NoCulling); for (auto tech : material->effect()->techniques()) { for (auto renderPass : tech->renderPasses()) { renderPass->renderStates().removeIf([=](Qt3DRender::QRenderState* renderState) { return dynamic_cast<Qt3DRender::QCullFace*>(renderState) != NULL; }); renderPass->addRenderState(cullFront); } }
  • linking .so file

    Unsolved
    2
    0 Votes
    2 Posts
    193 Views
    J
    @JacobNovitsky below seem to solve this task #!/bin/bash Set the directories containing the shared object files SPL_DIR="/home/j/SPL-Debug/debug/debug" SML_DIR="/home/j/SML-Debug/debug/debug" QPL_DIR="/home/j/QPL-Debug/debug/debug" Concatenate the directories with the current LD_LIBRARY_PATH export LD_LIBRARY_PATH="$SPL_DIR:$SML_DIR:$QPL_DIR:$LD_LIBRARY_PATH" Print the current LD_LIBRARY_PATH for verification echo "LD_LIBRARY_PATH is set to: $LD_LIBRARY_PATH" Use ldd to show the shared libraries used by the QUI application ldd /home/j/QUI-Debug/QUI
  • problem using the Qt library function 'QValueAxis::setRange'

    Solved qvalueaxis setrange ticksdynamic
    13
    0 Votes
    13 Posts
    1k Views
    E
    @JonB Thanks for your awesome reply. I think you are right. It only causes a problem (in the original example) if in on_pushButton_2_clicked the code calls setRange first and then call setTickInterval because (apparently) only setRange calls calcuilateLayout as you determined. I have submitted a bug report to Qt (QTBUG-124158). For now, I will mark this forum topic as 'solved' and then after the QTBUG is resolved I will come back to this forum topic and update it.
  • QPlaneMesh geometry is null

    Solved
    2
    0 Votes
    2 Posts
    183 Views
    U
    It was possible to obtain it via the QGeometryView class like planeMesh->view()->geometry().
  • Qt display output of lib load out

    Solved
    3
    0 Votes
    3 Posts
    280 Views
    Z
    @Pl45m4 yup that's the one. much appreciated
  • QNetworkAccessManager make another request after response

    Unsolved
    2
    0 Votes
    2 Posts
    176 Views
    SGaistS
    Hi, Use the same QNAM, however rather than connecting its finished signal, do it for the reply of your request so you can properly handle the two request independently.
  • QVideoWidget not showing on QVBoxLayout with QScrollArea

    Unsolved
    10
    0 Votes
    10 Posts
    784 Views
    JoeCFDJ
    @jsulm True. Thanks.
  • How to display the entire project in Qt IDE

    Solved
    3
    0 Votes
    3 Posts
    204 Views
    F
    @Ronel_qtmaster Thank you very much. The project has been successfully opened!
  • implementing sorting with QSortFilterProxyModel

    Solved
    27
    0 Votes
    27 Posts
    5k Views
    JonBJ
    @GrecKo https://stackoverflow.com/questions/45563393/sort-the-data-of-a-qml-listview-by-using-a-qsortfilterproxymodel https://github.com/oKcerG/SortFilterProxyModel/ OIC you were the replier & author :)
  • QSerialPort::waitForReadyRead() unusable for quick responses

    Solved
    12
    0 Votes
    12 Posts
    810 Views
    InTheBeningingI
    @kuzulis Because that's exactly what this virtual function is for. In QIODevice it says "This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread." So the latter part sounds exactly like what i did... I don't see why that would be bad design? Telling one not to use a function which is clearly meant to be used in a thread and completely ignoring the constraint to have a synchronous snippet/ a single function is just misleading at best.
  • Microseconds Delay

    Unsolved
    5
    0 Votes
    5 Posts
    573 Views
    aha_1980A
    Given that screens refresh with 50 or 100 Hertz, microsecond update rates are useless. I'd use a QTimer with an resolutio of 10 milliseconds, for example. Then draw a bunch of points at once. That should give the best performance. Regards
  • Can Bus does not transmit (writeFrame)

    Unsolved
    9
    0 Votes
    9 Posts
    761 Views
    aha_1980A
    And I've now tried the Qt 6.7 CAN Manager example with PCAN-Basic 4.8.2.897. Sending and receiving works like a charm. @NoobyLost Do you have an event loop running?