Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • running the executable from terminal is slower than running it from qt creator

    Solved
    6
    0 Votes
    6 Posts
    431 Views
    SGaistS
    As I suggested, check the librairies that are loaded when running on the command line. You can also use a software line heaptrack to get some insight about what is happening within your application.
  • Can I display the ScrollBar of a QTreeWidget on the left side?

    Unsolved
    9
    0 Votes
    9 Posts
    691 Views
    SGaistS
    Reading the documentation again, I think you are correct. Then the next choice would be to put your custom scrollbar in a layout next to your QTableView.
  • How to tell QTableView with a QAbstractTableModel that the number of rows changed?

    Unsolved
    2
    0 Votes
    2 Posts
    286 Views
    SGaistS
    Hi, That's were begin/endInsertItems comes to play. And their friends when removing rows.
  • Line Chart axis fixed range problem

    Unsolved
    1
    0 Votes
    1 Posts
    171 Views
    No one has replied
  • Dependencies missing after DLL compilation

    Solved dll compilation qmake dependencies labview
    13
    0 Votes
    13 Posts
    3k Views
    JKSHJ
    @UvQtcYZJuD7J5VW7 said in Dependencies missing after DLL compilation: Unfortunately, LabView is not very talkative. This is the only error message I get. I have already recreated the node. Ah, check the dependencies of the DLLs that you deployed. For example, libgcc_s_dw2-1.dll depends on other DLLs too. Otherwise I could programming the entire program in Qt and so I will not have the need to use a DLL. If you can do everything in 1 language, that makes life a lot easier.
  • Inheritance and signals

    Unsolved
    2
    0 Votes
    2 Posts
    378 Views
    JKSHJ
    @VS-IK said in Inheritance and signals: //prints 111 instead of expected 222 That's because Api::foo() is not virtual. You can't override it.
  • QPdfBookmarkModel return -1 as page number

    Unsolved
    1
    0 Votes
    1 Posts
    205 Views
    No one has replied
  • Getting a pointer out of on_pushButton_clicked()

    Unsolved
    5
    0 Votes
    5 Posts
    373 Views
    R
    @jsulm Thank you so much for you help! Greetings!
  • building Qt MYSQL driver for MAC OS Monterey

    Unsolved
    32
    0 Votes
    32 Posts
    5k Views
    hskoglundH
    pyQt5 if it's based on Qt5 then the MySql plugin for Qt6 you just built will not work (plugins for Qt6 does not work in Qt5). Perhaps you need to upgrade to pyQt6...
  • How to disable resolution from affecting the scaling of the program?

    Unsolved
    1
    0 Votes
    1 Posts
    183 Views
    No one has replied
  • 0 Votes
    6 Posts
    1k Views
    M
    text=QString("%1 \n").arg(params.azimuth, 7,'f',3,'0'); text+=QString("%1 \n").arg(params.pitch, 7,'f',3,'0'); text+=QString("%1 ").arg(params.roll, 7,'f',3,'0'); or QString text=QString::asprintf("AZ:%07.3f\nPT:%07.3f\nRL:%07.3f", params.azimuth, params.pitch,, params.roll); or QString text=QString("%1\n%2\n%3").arg(params.azimuth, 7,'f',3,'0').arg(params.pitch, 7,'f',3,'0').arg(params.roll, 7,'f',3,'0');
  • How can i remove qchart unuseful area?

    Solved
    5
    0 Votes
    5 Posts
    669 Views
    B
    @Christian-Ehrlicher Thank you for quick reply, i have tried but not working :( 2 data point completely envelop the chart like previously. Thank you so much :)
  • building qsqlmysql.dll for msvc error

    Solved mysql mysql driver msvc qt5.15.1 nmake
    5
    0 Votes
    5 Posts
    1k Views
    M
    @Christian-Ehrlicher said in building qsqlmysql.dll for msvc error: Forgot to copy or typo? I forgot to copy. I looked into Makefile.Release and realised that instead of C:\mysql\include this It was including this C:\Program Files\MySQL\MySQL Server 8.0\include I deleted qmake.stash and config.cache and repeated the qmake again and this time I generated qsqlmysql.dll successfully. Tested it with Sample Cpp code in Qt, it's working. @Christian-Ehrlicher Thanks for the suggestion.
  • Output of QProcess is delayed

    Solved
    5
    0 Votes
    5 Posts
    560 Views
    bleriot13B
    Dear @Christian-Ehrlicher, yours was the solution! I wrote not only the GUI but also the command line app. I only had to add a std::flush command at the end of every message in the command line one and the problem was solved. THANK YOU VERY MUCH!!!
  • 0 Votes
    1 Posts
    151 Views
    No one has replied
  • failed to initialize XrandR

    Unsolved
    5
    0 Votes
    5 Posts
    5k Views
    JKSHJ
    @brookbot said in failed to initialize XrandR: qt.qpa.xcb: failed to initialize XRandr What does xrandr -q show you?
  • How do I get the Qt non-commercial edition?

    Unsolved
    3
    0 Votes
    3 Posts
    575 Views
    JKSHJ
    @Xarzu said in How do I get the Qt non-commercial edition?: Qt comes in several different editions, as mentioned below. Qt free edition: This is only available for UNIX/X11 and embedded systems. It contains all features of the Qt enterprise edition and can be only used to develop software that is licensed under GPL. Qt non-commercial edition: This is only available for MS Windows and contains all features of the Qt enterprise edition. It can only be used to develop non-commercial software. list itemQt professional edition: This is available for all supported platforms like UNIX/X11, embedded systems, MacOS and Windows. But it doesn’t contain certain advanced features such as the table module, the XML module and the networking module. That looks like very very old information. So, how do I get this Qt non-commercial edition? There is no non-commercial edition anymore. Instead, there is https://www.qt.io/download-open-source
  • qt.qpa.xcb: failed to initialize XRandr and XInput2 Errors

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to proceed to find / add the correct path project..

    Unsolved
    2
    0 Votes
    2 Posts
    296 Views
    A
    Printing "message" SOLVED message($$INCLUDEPATH) NOT SOLVED - link to correct project . @AnneRanch I think this task of moving projects around was a very bad idea. I found this mess ....in one of the .pro files INCLUDEPATH += $$PWD/../../../ DEPENDPATH += $$PWD/../../../ message ("aDDED UTILITY ?? ") unix:!macx: LIBS += -L$$OUT_PWD/../../MDI_BT/build-MDI_BT-Desktop_Qt_6_2_3_GCC_64bit-Debug/Utility/ -lUtility INCLUDEPATH += $$PWD/../../MDI_BT_BAD_BTSCANNNER_INCLUDE/MDI_BT/Utility DEPENDPATH += $$PWD/../../MDI_BT_BAD_BTSCANNNER_INCLUDE/MDI_BT/Utility unix:!macx: LIBS += -L$$OUT_PWD/../../LoCAL_SOURCE/BT_Utility_Library/ -lBT_Utility_Library INCLUDEPATH += $$PWD/../../LoCAL_SOURCE/BT_Utility_Library DEPENDPATH += $$PWD/../../LoCAL_SOURCE/BT_Utility_Library message ("REMOVED /../bluetooth/btscanner/ -lSYSTEM library ") how do I PRINT "INCLUDEPATH" to verify that I am including / linking to correct projects ???
  • Filtering the QAbstractTableModel is slow.

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    I
    Thank you very much, I will try what you said and get back to you as soon as possible.