Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • insertRows and insertRow in tableview

    Solved
    15
    0 Votes
    15 Posts
    5k Views
    B
    Hey guys, Thanks a bunch, in all i wanted to understand the insertRows and insertRow, plus how to implement it. You guys directed me in right direction Thank You. marking resolved
  • Mouse grabbing not working in menu with qwidgetaction

    Moved Unsolved
    3
    0 Votes
    3 Posts
    192 Views
    M
    https://forum.qt.io/topic/130938/mouse-grabbing-not-working-in-menu-with-qwidgetaction. Can you answer here? I missed and send second post :-(
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    12 Views
  • Failed to run Docker image after build

    Unsolved
    4
    0 Votes
    4 Posts
    663 Views
    jsulmJ
    @chrish10r https://en.wikipedia.org/wiki/X_Window_System http://wiki.ros.org/docker/Tutorials/GUI https://gursimar27.medium.com/run-gui-applications-in-a-docker-container-ca625bad4638
  • Progress bar not showing up

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    S
    @poordev123 said in Progress bar not showing up: So I would start a QThread in my main function and that would make the progress bar show up? From there I would then use progressBar.setValue(x) to do that? Maybe it is a little easier to use QtConcurrent::run() instead of a fully fledged QThread. This is only an aside. There are several possibilities to use threads here. There is one thing all threaded solutions have in common: You cannot just call progressBar.setValue(x). This function can only be called from the GUI thread. Otherwise your app might (occassionally) crash. Instead you have to put this call into the event loop of the GUI thread. Just have a signal inside your new thread connected to the slot setValue() of your progressBar. Connections between threads will just work properly. You can also skip having your own slot and post an event inside the event loop of the GUI thread directly. In C++ this would look like this: QMetaObject::invokeMethod(qApp, [=](int x){ progressBar.setValue(x); }); One thing to remember: Don't update the progressBar too often as this will significantly slow down the actual computation. You can check if the progress value has actually changed (for one single percent) or if at least 100ms have passed (or both). This little trick can be the difference between seconds and minutes.
  • Strategy for displaying big histograms (1024 bins) in QtChart

    Unsolved
    3
    0 Votes
    3 Posts
    380 Views
    F
    Thanks, I will give that a try.
  • cmake not creating makefile.txt

    Solved
    6
    0 Votes
    6 Posts
    974 Views
    V
    @jsulm here is the link: https://doc.qt.io/qt-6/sql-driver.html#qmysql And no, @VRonin qt-cmake --build . on my install results in this error: CMake Error: Unknown argument --build
  • 3d flow around object

    Unsolved
    1
    0 Votes
    1 Posts
    160 Views
    No one has replied
  • Is it possible to send mouse input from QFrame to Qt3DWindow?

    Solved
    5
    0 Votes
    5 Posts
    447 Views
    A
    Thanks, @Pl45m4 I used QScreenRayCaster as an added component in the root entity and it works!
  • Creating video in Qt

    Unsolved
    3
    0 Votes
    3 Posts
    314 Views
    A
    Thank you. Finally I used ffmpeg.
  • Image file when distributing qt programs.

    Solved
    2
    0 Votes
    2 Posts
    198 Views
    JKSHJ
    @IknowQT said in Image file when distributing qt programs.: I added an image file to a resource Then the image is embedded inside your built binary file (.exe or .dll) -- It is no longer a standalone image file. You can view embedded resources using tools like: ResHack: http://angusj.com/resourcehacker/ PE Explorer: http://www.pe-explorer.com/
  • How to integrate a external openGL application (contain own main method) in QT?

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    fabriciokashF
    Although the solution had returned other problems, this topic will be marked as solved, because these problems is out of context of the topic. Thanks for contribution @SimonSchroeder , @jsulm , @JoeCFD.
  • how to open a file in my qt app via double clicking on it

    Solved
    32
    0 Votes
    32 Posts
    5k Views
    _
    I found a solution to this problem the URL is coming from the system, so the problem with the system I fixed that problem by enabling UTF-8 for windows by following these steps: • Open Control Panel • Click on Clock and Region • Click on Region • Go to Administrative tab • Click on Change system locale... • Click on Beta: Use Unicode UTF-8 for worldwide language support check box. • Then when you restart your computer the problem will disappear :) if you have any other solution please tell me
  • Localization

    Unsolved
    7
    0 Votes
    7 Posts
    644 Views
    M
    @Meistermosher If you want to enable translation down the line, at the very minimum use tr() every time you define a string in c++ and qsTr() every time you define a string in QML. https://doc.qt.io/qt-5/i18n-source-translation.html The bottom line is that you will run the qt translation tool, it will know the strings defined in those calls and allow you to swap out the text for them in your desired translation (you need to give it the translated text manually). Its actually not that complicated. I would suggest while you are learning to code and use the framework, just use tr() and qsTr(), and worry about translation after the fact (thats what the translation system is made for).
  • Lost on resizing QListWidget :(

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    idlefrogI
    @JonB Yes, it works fine for me on Qt 5.15.2. Thanks for the support! And thanks for the link! (I had found that one too!). :)
  • qt COM tlb library issue

    Solved
    4
    0 Votes
    4 Posts
    489 Views
    hskoglundH
    Sorry, last time I used dcomcnfg was before the turn of the century, so I have only vague memories, I seem to remember you started at the receiving computer (a.k.a. DCOM server) and declare the COM interface available through DCOM and also turn on network sharing so that the C:\ drive on that computer can be reached via a net use on the sending/client computer (so that the network security is ok). Also if you have connection problems try turning off the firewall on both computers. Google could be your friend here :-)
  • What version of Qt do I need for MQTTv5 support?

    Unsolved
    5
    0 Votes
    5 Posts
    386 Views
    JoeCFDJ
    MQTT can be used without QtMQTT. However, you have to come up with an interface.
  • Check QPushButton Color.

    Solved
    4
    0 Votes
    4 Posts
    305 Views
    P
    I didn't realize I had to make it checkable. I also added the :checked state. Thanks everyone, that worked.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Transparent QOpenGLWidget in Dialog

    Unsolved
    2
    0 Votes
    2 Posts
    293 Views
    S
    For now, I manage to fix this by changing glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); to glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD); glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE); However, I would still like to understand the root cause or better alternative to fix this issue.