Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • 0 Votes
    1 Posts
    262 Views
    No one has replied
  • Build problem: can't find include file

    Solved
    13
    0 Votes
    13 Posts
    817 Views
    A
    @JonB Nevertheless, thank you to all of you for the quick response! Great forum here!
  • customizing a QTreeView

    Unsolved
    1
    0 Votes
    1 Posts
    137 Views
    No one has replied
  • modify the graphics view to display information frames

    Unsolved
    4
    0 Votes
    4 Posts
    257 Views
    jsulmJ
    @Blackzero The first link @JonB gave you has an example
  • Saving from Word to PDF

    Solved
    6
    0 Votes
    6 Posts
    900 Views
    jsulmJ
    @Jose-Williams said in Saving from Word to PDF: Will this code work for an online converter like this no
  • QAbstractCameraController: How to implement?

    Unsolved
    1
    0 Votes
    1 Posts
    125 Views
    No one has replied
  • QListWidgetItem selection issue

    Solved
    5
    0 Votes
    5 Posts
    503 Views
    SGaistS
    @strukfit yes you can. QListWidget is just a QListView with a pre-built model.
  • insertRecord failure with QSqlRelationalTableModel

    Unsolved pyqt6 qsqlrelational
    5
    0 Votes
    5 Posts
    609 Views
    SGaistS
    @JonB one of the issue is that the database initialization is not done in the correct order and assumes the values of the cities ID. All in all, it should use a Foreign Key to properly map the city to the user. This would properly structure the relation between the tables.
  • How to change the tray icon of the Stream Deck client?

    Unsolved
    2
    0 Votes
    2 Posts
    280 Views
    Christian EhrlicherC
    Since Qt is jsut a c++ library and does nothing magical wrt the application icons there is nothing Qt can do here when ResHacker can't read the ico file embedded in the executable.
  • 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
    646 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
    914 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
    302 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.