Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.6k Posts
QtWS25 Last Chance
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    29k Views
    A
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • how to make a widget that could input the text then the text became the widget

    Unsolved
    6
    0 Votes
    6 Posts
    89 Views
    jeremy_kJ
    I interpreted the OP description as something along the lines of GitLab's search input, where free text that is recognized as a keyword is replaced with a label: [image: 826e5846-f1b4-4c7c-a66a-d8c6d7fc38ba.png]
  • In QT engine how to "Unable to create a debugging engine"?

    Unsolved
    23
    0 Votes
    23 Posts
    29k Views
    V
    [image: 65d3663b-913a-46ee-8dd8-cba729bb5fc6.jpg] Debugger not recognised issue.
  • how to bundle all the system dll and lib for my qt program?

    Unsolved
    7
    0 Votes
    7 Posts
    76 Views
    Paul ColbyP
    Hi @MonkeyBusiness, I want to know if qt provides ways to deploy all required dll and lib with my program? As others have said, the answer is yes. You can read more about it here: https://doc.qt.io/qt-6/windows-deployment.html Since you asked specifically about VCRUNTIME140.dll it's worth explaining a bit more. windeployqt will collect a few different things for you application (not an exhaustive list): the Qt libraries your application depends on (if they can be detected); the Qt plugins in your application depends on (if they can be detected); the VC runtime redistributable. Now, the VCRUNTIME140.dll you mentioned is part of that #3. Specifically, as I understand it, Microsoft does not allow applications to distribute and install VC runtimes in any way other than via their own .exe installer. So, windeployqt will pull the VC redist installer (typically vc_redist.x64.exe) from the OS, and put it with your application (unless you use the --no-compiler-runtime option to skip it). It is then your responsibility to run that installer, if the required runtime is not already installed, either manually, or as part of your own application installer. Here's a bit of how the Qt6 docs describe it: For Windows desktop applications, the required runtime files for the compiler are also copied to the deployable folder by default (unless the option --no-compiler-runtime is specified). In the case of release builds using Microsoft Visual C++, these consist of the Visual C++ Redistributable Packages, which are intended for recursive installation by the application's installer on the target machine. So, in summary: use windeployqt to collect the libraries, and runtime, needed for the app (tip: you might find --release and --compiler-runtime options helpful) distribute the resulting file set however you like (zip it, write a Qt Installer Framework installer, create an *.msi file, etc) when/after installing, run the included vc_redist.x64.exe - either manually, or via your own installer. There are other ways to do it (including commercial install tools etc), but that's the most basic way, as far as I understand it. Cheers.
  • QsortFilterProxyModel filter parents without visible children.

    Unsolved
    12
    0 Votes
    12 Posts
    115 Views
    P
    Because I would have thought you want that flag for the default case Ah, thank you, but in this specific case I would have wanted another type of recursion to happen : ) Suggestions go to https://bugreports.qt.io/. Thank you, I will try to provide as much info as possible and post the link here when it's done.
  • pyuic5 no longer converting files properly

    Solved
    3
    0 Votes
    3 Posts
    30 Views
    enjoysmathE
    @Kent-Dorfman I will update my code to PyQt6 since I'm doing a rewrite :)
  • Right click not working in form designer

    Unsolved
    13
    0 Votes
    13 Posts
    623 Views
    Z
    @MJ02 said in Right click not working in form designer: Please could I have some assistance I am trying to right click on a push button to get to the signals and slots menu but nothing happens when I right click Make sure you're in "Edit" mode in Qt Designer or Creator. If right-click isn't working, try using the Object Inspector or just hit Ctrl+Shift+S to open the signals/slots editor directly. Should do the trick!
  • Update UI from multiple threads

    Solved
    14
    0 Votes
    14 Posts
    142 Views
    A
    @Christian-Ehrlicher Okay, I finally saw the issue. In my code std::this_thread::sleep_for(std::chrono::milliseconds(100)); was outside the pool.enqueue() function. So the main thread was constantly sleeping and couldn't process the signals.
  • Windows compilation problem

    Unsolved
    2
    0 Votes
    2 Posts
    38 Views
    JonBJ
    @oliver_mpt said in Windows compilation problem: The function CreateSyntheticPointerDevice is declared in winuser.h as : I don't know but have a read through https://www.reddit.com/r/gcc/comments/u0q721/how_to_compile_a_shared_library_that_uses_types/ . That was from 3 years ago and said You'll need a very recent version of Mingw-w64. You'll also need to define NTDDI_VERSION to at least NTDDI_WIN10_RS5 Maybe the discussion there will help for this particular issue? Also https://discuss.kde.org/t/kirigami2-for-developement-on-windows-rant/6333/16. If the error comes from Qt sources rather than your own I do not know why it does not run through and compile/link correctly. I do not use Windows for Qt.
  • Qt 6.9.0 and debug information problem

    Unsolved
    7
    0 Votes
    7 Posts
    62 Views
    Z
    Sorry, I found it. I have last version 3.3.1 of "Qt Visual Studio Tools"
  • QTabWidget: how to implement MRU Ctrl+Tab switching ?

    Unsolved
    3
    0 Votes
    3 Posts
    64 Views
    A
    Need new class sub-classing QTabWidget MruTabWidget::MruTabWidget(QWidget *parent) : QTabWidget(parent) and installEventFilter
  • QSS for QTabBar close button: visible on selected OR hovered

    Unsolved
    2
    0 Votes
    2 Posts
    32 Views
    SGaistS
    Hi, I think that for this case, you should consider creating a QProxyStyle in order to be able to manage that hierarchy of constraints.
  • QApplication initialization is memory intensive

    Unsolved
    2
    0 Votes
    2 Posts
    75 Views
    Kent-DorfmanK
    The graphics image above is not enough information to even make an educated guess.
  • plugin cache problem

    Unsolved
    6
    0 Votes
    6 Posts
    399 Views
    L
    In windows cache is located in the registry
  • Can't get location from geocode()

    Unsolved
    10
    0 Votes
    10 Posts
    166 Views
    Pl45m4P
    @JonB said in Can't get location from geocode(): could OP simply not be getting any "response" to "request" sent? I don't know in what situation none of the three connected signals are fired... so I guess no. I also tried with invalid address data (city = "khjgfkg" and street = "bvxycvcj") and I still get the QGeoCodeReply::finished signal. With no valid lat/long but that doesn't matter in this case. Therefore I guess it's either mine "object lifetime" issue or your "blocked event loop". However for the latter I don't see any reason for this to happen, assuming OP's Winzer widget/object is working properly. So @msauer751 needs to check the code that is not visible to us for Qt design and C++ issues... and probably find the cause of this problem.
  • How to use setData() in model with a back-end database

    Solved model-view sql database
    5
    0 Votes
    5 Posts
    79 Views
    SavizS
    Thank you. I will give it a try and only go for async if need be. I just wanted to make sure I am not missing out on some hidden method that I don't know of.
  • Qt Examples / Widgets / FlowLayout not working in MainWindow

    Unsolved
    14
    0 Votes
    14 Posts
    180 Views
    JonBJ
    @F32_ To be clear for others: with Qt 6.4.2 under Ubuntu/GNOME/xcb, I am claiming both QWidget & QMainWindow cases are as per the second screenshot above. I never see a minimum height of 3 lines. Which of the two is the "correct" behaviour in the OP's case I do not claim to know :)
  • How to enable OpenGl rendering in QML?

    Solved
    9
    0 Votes
    9 Posts
    163 Views
    M
    @jsulm It turns out you need to use QSG_RHI_BACKEND=opengl instead
  • Suggestion: Stand up Public Symbol Server for Qt Symbols

    Unsolved
    4
    1 Votes
    4 Posts
    103 Views
    Christian EhrlicherC
    ... or simply install the debvug symbols with the Qt online installer. What's the point here?
  • Multiple QSqlTableModels on single widget

    Unsolved
    3
    0 Votes
    3 Posts
    62 Views
    Z
    @Pl45m4 Thank you, I had seen a few separate posts where it looked like multithreading wasn't possible in model/view so I'll stop exploring it. I agree there must be something else going on. I'll try stripping the class down to the basics to see what the issue is and will report back.