Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. windows
    Log in to post

    • UNSOLVED Installing the Multimedia component?
      Installation and Deployment • windows cmake multimedia • • jalway  

      2
      0
      Votes
      2
      Posts
      59
      Views

      I'm hoping for an answer on this. Here is a screenshot of the QT Maintenance Tool. Shouldn't I see a way to install the QT Multimedia component here? I have a red arrow where I would have assumed I'd see it (I've seen examples on the web with screenshots showing it.) I have 6.3.1 installed. Thanks, ...John
    • UNSOLVED Could not find a configuration file for package "Qt6" that is compatible with requested version "".
      General and Desktop • windows cmake qt6 cmakelists.txt • • LoveAndMercy  

      2
      0
      Votes
      2
      Posts
      551
      Views

      @LoveAndMercy said in Could not find a configuration file for package "Qt6" that is compatible with requested version "".: set (CMAKE_PREFIX_PATH "C:\Qt\6.3.1\mingw_64") Sorry i forgot to change my set path back, here the original version: set(CMAKE_PREFIX_PATH "C:/Qt/6.3.1/mingw_64")
    • SOLVED QT Deploy QPSQL Plugin
      Installation and Deployment • c++ windows plugin deploy postgresql • • thaidy  

      7
      0
      Votes
      7
      Posts
      222
      Views

      @thaidy said in QT Deploy QPSQL Plugin: @hskoglund said in QT Deploy QPSQL Plugin: what happens if you move the declaration into for example your MainWindow.h class: QSqlDatabase DB; DB = QSqlDatabase::addDatabase("QPSQL"): IT WAS THAT, THANK YOU VERY MUCH!! Glad this has solved problem, certainly better than some static variable. However, this is still not right/advised. Per https://doc.qt.io/qt-5/qsqldatabase.html#details, red box warning: Warning: It is highly recommended that you do not keep a copy of the QSqlDatabase around as a member of a class, as this will prevent the instance from being correctly cleaned up on shutdown. If you need to access an existing QSqlDatabase, it should be accessed with database(). If you chose to have a QSqlDatabase member variable, this needs to be deleted before the QCoreApplication instance is deleted, otherwise it may lead to undefined behavior. Qt asks you to simply call static QSqlDatabase QSqlDatabase::database(const QString &connectionName = QLatin1String(defaultConnection), bool open = true) whenever you need to access a QSqlDatabase, and not to keep even a member variable QSqlDatabase around. You don't need it.
    • UNSOLVED [Windows] [IFW] Create shortcut in `shell:startup`
      Installation and Deployment • windows ifw startup • • LorenDB  

      1
      0
      Votes
      1
      Posts
      98
      Views

      No one has replied

    • SOLVED Qt menu looks "old" on Windows
      General and Desktop • qt5 windows menu qt5.15.2 menubar • • tontsa28  

      6
      0
      Votes
      6
      Posts
      188
      Views

      I took a look with the ListDLLs tool but couldn't actually find the plugin being used by the 32-bit version, maybe some other DLL is handling that? Anyway, my problem is now solved so I'll mark this topic as solved.
    • UNSOLVED Qt Creator not find the sysroot library
      Installation and Deployment • windows cross compile qt 6 rpath sysroot • • Gio26  

      2
      0
      Votes
      2
      Posts
      150
      Views

      I find one solution, I add in .pro: QMAKE_LFLAGS += -Wl,-rpath-link=path/to/sysroot/lib Is this the only way? Thanks.
    • UNSOLVED Cannot Run Project because of Error 20 (this feature has not been implemented yet)
      General and Desktop • qtcreator windows qt for python nvidia • • drpontchartrain  

      1
      0
      Votes
      1
      Posts
      269
      Views

      No one has replied

    • SOLVED The current process has used all of its system allowance of handles for Window Manager objects.
      General and Desktop • windows qtimer qtimer failed • • koahnig  

      2
      0
      Votes
      2
      Posts
      506
      Views

      OK, it was a bit premature to ask immediately. I found this post https://forum.qt.io/topic/54438/solved-qt-5-4-1-qtimer-using-up-all-handles-for-window-manager-objects Actually with QNetworkAccessManager I was a bit sloppy. Need to check if it helps already. Edit[koahnig]: It helped. Therefore, pay attention when generating new QNetworkAccessManger objects.
    • UNSOLVED Qt 6.3.0 Alpha fixed qmake.exe
      General and Desktop • windows qmake 6.3.0 alpha • • Dmitry87  

      3
      0
      Votes
      3
      Posts
      135
      Views

      I am on windows, but the company's policy and firewall restrictions make it very difficult to get and build the sources.
    • SOLVED How do I use Qt headers in a CMake sub-project?
      General and Desktop • windows cmake visual studio msvc msvc2017 • • tuzepoito  

      6
      0
      Votes
      6
      Posts
      1082
      Views

      @tuzepoito said in How do I use Qt headers in a CMake sub-project?: I think I have a solution, or maybe a workaround. Why workaround? If you want to use a library, you have to link against it what you're doing now - how should this be a workaround?
    • UNSOLVED Windows + Cmake multiproject template
      Tools • qtcreator windows cmake cmakelists.txt • • artwaw  

      1
      0
      Votes
      1
      Posts
      142
      Views

      No one has replied

    • UNSOLVED Cannot open include file: ui_*.h when using multiple Qt projects in the same Visual Studios solution
      General and Desktop • windows visual studio x64 ui header • • Armaan Bandali  

      4
      0
      Votes
      4
      Posts
      214
      Views

      My second solution would be much more portable.
    • UNSOLVED Add DLL paths at runtime
      General and Desktop • windows cmake dll • • Maluna34  

      4
      0
      Votes
      4
      Posts
      1359
      Views

      Do you mean how to add paths so that your .exe files can be run from Qt Creator, or adding paths so that your .exe files can be run without Qt Creator? In the first case (starting .exe files from Qt Creator) as long as you only have a single version of Qt installed on your PC, there should be no need to add any paths, as I said earlier, Qt Creator adds the path to the Qt dlls for you. In the second case (starting .exe files without Qt Creator) then there are 2 ways to do it: copy the Qt dlls to the same directory that your .exe file is in, either manually or by using the windeployqt.exe program adding the path to the Qt dlls to the PATH env. variable Note: LIBS += -LMyPath has no effect on runtime lookup of .dlls or .so files QMAKE_RPATHDIR has no effect on Windows, because Windows does not support adding a list of paths to your .exe/elf file where to find the Qt dlls/so files (works only on Linux and MacOS) Also on Linux, QMAKE_RPATHDIR is not needed for the first case (starting .exe/elf files from Qt Creator) since Qt Creator does that automatically for you (by issuing a linker command e.g. -Wl,-rpath,/home/user/Qt/5.15.2/gcc_64/lib)
    • SOLVED QSerialPort Timeout Using waitForReadyRead on Windows
      General and Desktop • linux windows qserialport arduino • • cfallon61  

      4
      0
      Votes
      4
      Posts
      528
      Views

      Ok well here's an interesting discovery I've made, for anyone who finds this thread in the future: There seems to be an issue with the driver for the off-brand Arduino Nanos possibly not signalling to the OS correctly, or the implementation that Qt uses just really doesn't like the way that the driver responds. I am referring specifically to the nano clone which uses the QinHeng HL-340 serial peripheral. Not sure why this caused a problem, but there it is. Once I used an official Uno the code worked no problem. If I were more patient and had better resources I could possibly trace back the issue, but I do not, so sorry everyone lol. As such I'm marking this as resolved.
    • UNSOLVED How to support an autohiding taskbar on Windows?
      General and Desktop • windows qtwidgets taskbar • • Krakenus00  

      2
      0
      Votes
      2
      Posts
      195
      Views

      @Krakenus00 Hello can you add the picture that you want to achieve and one that you are getting
    • UNSOLVED Build and link MySQL plugin (Qt6 - Qt 6.0.0 + 5.15.2, MySQL 8.0.22, Visual Studio 2019 with Qt Visual Studio Tools 2.6.0.7) - step by step 64bit
      Installation and Deployment • qt5 windows qt6 mysql driver • • deleted414  

      1
      0
      Votes
      1
      Posts
      2204
      Views

      No one has replied

    • SOLVED Requirement for users to use a BLE application
      General and Desktop • linux windows bluetooth ble bluez • • TUStudi  

      3
      0
      Votes
      3
      Posts
      311
      Views

      @sierdzio Thank you very much!
    • SOLVED Wrong kit for Qt 6.0.0 MSVC2019 64bit
      General and Desktop • windows qt6 msvc2019 kits kit setup • • Galbarad  

      13
      0
      Votes
      13
      Posts
      1327
      Views

      https://bugreports.qt.io/browse/QTBUG-87735 bug fixed) Fix Version/s: 6.0.0 RC
    • UNSOLVED Qt bad drawing performance
      General and Desktop • windows macos performance drawing • • vic.ju  

      1
      1
      Votes
      1
      Posts
      264
      Views

      No one has replied

    • SOLVED Disable close for fullscreen window on Windows ?
      General and Desktop • windows ubuntu closeevent close window • • R-P-H  

      7
      0
      Votes
      7
      Posts
      806
      Views

      @Chris-Kawa Thanks, it works !
    • SOLVED any Windows networking mavens out there?
      Brainstorm • windows sockets broadcast • • mzimmers  

      20
      0
      Votes
      20
      Posts
      1375
      Views

      @mzimmers If i iterate over the interfaces like in your script, then it works with no problem :) Running on windows :) When using only the QHostAddress::Broadcast I get the wrong broadcast addr. I too think it is strange, but this is no issue for me, as it's always simple to determine the right address by code or manually :) just strange as you say :) Anways, off to new issues :D
    • SOLVED Attempting Windows deployment - .exe file not opening with no error messages
      Installation and Deployment • qml windows deployment • • adamlaird  

      4
      0
      Votes
      4
      Posts
      603
      Views

      I posted this Question on SO as well, who directed me towards a logger which made it really easy to see what was up and lead to an easy fix. Heres a link to the question if anyone would find it helpful: https://stackoverflow.com/questions/61035096/attempting-windows-deployment-exe-file-not-opening-with-no-error-messages/61036646#61036646
    • UNSOLVED Poor font rendering on Windows compared to Linux
      General and Desktop • linux windows widgets rendering fonts • • JoeMama  

      3
      0
      Votes
      3
      Posts
      1055
      Views

      I see, thanks for the response. I stumbled today on an old thread where user wanted the same font rendering as in Photoshop. One of person responding said that they made their own wrapper of FreeType. I guess I will try to render icons using that and see where it goes. Not gonna mark it as solved for now though, maybe someone will stumble on it with some experience.
    • UNSOLVED Qt online installer. Error: Redirect loop detected
      Installation and Deployment • windows online install redirect loop • • bdfyy  

      4
      0
      Votes
      4
      Posts
      665
      Views

      @bdfyy You can use this tool: https://github.com/JKSH/QtSdkRepoChooser
    • SOLVED Opening a window behind main window
      General and Desktop • windows mainwindow pixmap graphicsview raises window • • hodahle  

      7
      0
      Votes
      7
      Posts
      924
      Views

      @JonB Not a big viewer at all. viewer is a simple QGraphicsView containing a QPixmapItem which is continually updated through another slot taking a signal from the camera thread every time it has a new frame, at 60fps. Part of the issue seems to be with the debug build, which is obviously a fair bit slower than release. In release it doesn't really seem noticeable, though I imagine it might be on a slow system. Still, I do find the asynchronous behaviour of raise() interesting. I tried looking a bit at the source code, but didn't really get anywhere. Because it's not a problem in release, I guess I'll just leave it be for now. Thanks for the help, though, much appreciated.
    • SOLVED Android: build with Linux
      Mobile and Embedded • android linux windows apk jenkin • • KroMignon  

      4
      0
      Votes
      4
      Posts
      447
      Views

      I reply to myself, just in case some else has the same issue. Switching the Jenkins build slave from Windows7 to Linux (Debian 10) has reduced the APK build time from 40 minutes to 8 minutes! Yes, my project is relative big ;) Regards Fabrice
    • UNSOLVED WebEngine from self-build Qt 5.12.4 with -webengine-proprietary-codecs fails
      QtWebEngine • windows qtwebengine custombuild 5.12.4 • • cppqt-glum  

      1
      0
      Votes
      1
      Posts
      583
      Views

      No one has replied

    • UNSOLVED Deploying a QML widget embedded in a QQuickWidget in Windows
      Installation and Deployment • qml windows desktop deployment qquickwidget • • JDePedro  

      2
      0
      Votes
      2
      Posts
      426
      Views

      @JDePedro Ok. I found the cause why I was not getting anything QML related from the tool. My widget is not in the exe file but in a DLL so I had to specify the dll instead. But the list of files the tool is getting is huge compared with the one I got by doing the process "manually" and includes most of the .qml files. So my doubt is, do we need to deploy all this files with my application? is not enough with the dlls???
    • Deleaker: a plugin for Qt Creator to find leaks (memory, GDI, handles etc.)
      Showcase • windows qt creator plugin debugging memory leak • • Artem.Razin  

      4
      7
      Votes
      4
      Posts
      1450
      Views

      @fcarney I can't beleive I missed your question. Comparing with Heob, Deleaker provides more features like taking snapshot at any moment, and comparing them later. Besides heap allocations, Deleaker also tracks COM/ActiveX/GDI/USER32 leaks etc.
    • UNSOLVED Qt5.12.3 Win32 MSVC: errors when trying to run app (release and debug)
      General and Desktop • qtcreator windows qt5.12.x failed start • • ivec  

      4
      0
      Votes
      4
      Posts
      1112
      Views

      Hi @ivec Is it normal that I needed to select the compiler manually? No. but please select the C compiler also. And how can I enable the use of a debugger to step through my program? You need to install the Debugging Tools for Windows, included in the Windows SDK. Due to licencing, this is not possible otherwise. Regards
    • SOLVED QStandardPaths returning inconsistent directories (Windows)
      General and Desktop • windows qstandardpaths • • Sprezzatura  

      10
      0
      Votes
      10
      Posts
      1142
      Views

      @JonB Noooo... I did not understand that the enumeration of multiple paths in the Windows example referred to a list. Now I know :o) thanks.
    • UNSOLVED App crashes when Qt core calls WinAPI's "DispatchMessage" function
      General and Desktop • qtcreator windows qtcore winapi • • psi-1  

      3
      0
      Votes
      3
      Posts
      862
      Views

      @kshegunov said in App crushes when Qt core calls WinAPI's "DispatchMessage" function: This address is rather suspicious. Please tell me you don't have global QWidgets? No, I have only a dll with function extern "C" CORE_SHARED_API QMainWindow * svCreateMainWindow() { return new MainWindow; } (CORE_SHARED_API is __declspec(dllexport)) @kshegunov said in App crushes when Qt core calls WinAPI's "DispatchMessage" function: Btw, 0xc0000409 is stack overflow, so be on the lookout for endless recursion. As I said, QWindowsGuiEventDispatcher::processEvents() is called twice, and I believe those calls are on the same stack level (crush happens in the second call).
    • SOLVED Needing help with designing a report manager app
      Brainstorm • linux windows sql mysql server • • realhamidrezakp  

      14
      0
      Votes
      14
      Posts
      2025
      Views

      what is your suggestion about server app design ? People usually refer to "server app" as "middleware" or "web application". There are tons of web frameworks and ORMs for various languages including Java and C# on "enterprise" side and scripting languages (pphp, python, perl, ruby, node.js). C++ is not really convenient language here. As for protocol, if you are not pursuing real-time data processing with lowest possible latency, it makes sense to use REST API on top of HTTP, so that on server side you have the most typical "web app" with ORM inside and REST outside, and on client side you can easily add web client if needed, and even if not, you get some additional convenience as compared to e.g. RPC over plain TCP
    • UNSOLVED Window dragging between two monitors with a different resolutions.
      General and Desktop • windows dragging framelesswindow • • nen777w  

      2
      0
      Votes
      2
      Posts
      395
      Views

      Hi, An educated guess is that the second case is handled by the window manager (the decoration is not done by Qt). One possible thing to do would be to check the screen resolution in your method and try to adapt to that.
    • UNSOLVED QtIFW 3.0/Windows: How to create an installer that doesn't create and register a MaintenanceTool ?
      Installation and Deployment • windows qtifw installer fw • • Yves  

      1
      0
      Votes
      1
      Posts
      645
      Views

      No one has replied

    • SOLVED qmake error with project files on samba share
      Installation and Deployment • windows qmake network share • • smhrambo  

      4
      0
      Votes
      4
      Posts
      898
      Views

      @smhrambo deleting the *.pro.user file often helps when you do such moves...