Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • QOpenGLShaderProgram - shader program is not linked

    Unsolved
    7
    0 Votes
    7 Posts
    4k Views
    A
    @AIN007 I have solved the problem,just enable QML debugging
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    6 Posts
    1k Views
    JKSHJ
    @CJha said in How to use full processing power available to do calculations?: If I use more threads by using QtConcurrent::mapped() or QThreadPool from inside a non-GUI thread, will it use this non-GUI calling thread as well? To make my point more clear: Let's say I create a thread called A and based on the number of cores my CPU has I have thread B, C and D available. After my thread A calls either QtConcurrent::mapped() or QThreadPool to start the calculation it has nothing more to do till the calculation finishes, so will it wait idle while my calculations are running in other threads or will QtConcurrent::mapped() or QThreadPool include thread A along with B, C and D to do the calculations? We need to know: How do you create thread A? QtConcurrent uses the global QThreadPool behind the scenes. If thread A is not part of the pool, then it won't be used by the pool to do calculations when it is idle. Is there any way I could run a single loop (major loop of my calculation) in multiple threads with different data sets without using QtConcurrent::run()? QtConcurrent::mapped() will not work as it has requirements that there should be a return type which is not always the case with my calculations. QThreadPool, QRunnable and especially QThreadPool::globalInstance() documentation is not enough for me to make this judgement. QtConcurrent::map() (not mapped()!) does not return any values. You can interface with it using QFuture<void>. See https://doc.qt.io/qt-5/qtconcurrentmap.html#concurrent-map Finally, is there a better/simpler approach to solving this problem? Experiment with QtConcurrent::map() and see if it suits your application. NOTE: I have placed the same question in Stack Overflow as well. As a courtesy to other users, please link your duplicate questions to each other. This way, people can see if your question has been resolved and get the answer too
  • QCursor from 32-bit ARGB pixmap

    Solved
    8
    0 Votes
    8 Posts
    841 Views
    D
    Update: The cursor colors are correct now. Both in my application and in the example application. I changed the following: Updated my NVIDIA GeForce Game Drivers to the latest version. For my screen: Disabled the built-in blue light filter and maxed out the built-in brightness setting. I believe one of these two changes fixed the issue (guessing it was the screen's built-in light filters that somehow messed with the cursor color). Tomorrow I'll try re-enabling the blue light filter and reducing brightness to the previous levels to see if that was the cause of the issue. I'll report back tomorrow and mark the topic as resolved once I've tested that. Update 2: I can't seem to reproduce the issue now. Maybe the NVIDIA drivers were the issue after all. Marking this as resolved for now. Thank you for the help Christian!
  • 0 Votes
    2 Posts
    2k Views
    Christian EhrlicherC
    Install a Qt message handler, set a breakpoint in there and take a look at the backtrace where it comes from.
  • WebEngine missing from Windows 5.15 installation

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    B
    @Bonnie Thanks - that is it. I have VS2017 compiler and use the VS2017 kit for 5.9.6 but my understanding when I installed 5.15 was that the VS2019 kit would not be compatible with VS2017 compiler so I am currently using the VS2015 kit. Fortunately we will be upgrading to VS2019 for development soon.
  • Add files to QT project

    Solved desktop c++
    3
    0 Votes
    3 Posts
    697 Views
    M
    Thank you, I got it.
  • 0 Votes
    6 Posts
    2k Views
    jsulmJ
    @Pradeep2121 OK. That should match. Please check the link you posted - the was a suggestion what to do (the error message already suggests what to do).
  • qmake visual studio 2019 install

    Unsolved
    1
    0 Votes
    1 Posts
    297 Views
    No one has replied
  • Cqtdeployment missing package

    Unsolved
    3
    0 Votes
    3 Posts
    429 Views
    EndrII 0E
    Hello This is a CQtDeployer Tool bug. now fixed. just update cqtdeployer
  • Standard path save location

    Solved
    8
    0 Votes
    8 Posts
    851 Views
    jsulmJ
    @naax yes
  • Can calling a slot too often lead to delays in data transfer?

    Unsolved signals & slots ble
    7
    0 Votes
    7 Posts
    1k Views
    S
    @JonB Oh, I thought I had the same, fixed it, thanks
  • This topic is deleted!

    Solved
    14
    0 Votes
    14 Posts
    419 Views
  • MSVC 2019 `make install` For Library

    Solved
    2
    0 Votes
    2 Posts
    248 Views
    webzoidW
    I'm an idiot.... MSVC - of course I can't use make... nmake install is all that was needed! Doh!!
  • (Pyqt) create instances of widgets generated in designer

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    JonBJ
    @kiyoshi7 said in (Pyqt) create instances of widgets generated in designer: i get this error, that I dont know how to fix. As the error message states, your self.gridLayout.addWidget(self.widget, 0, 0, 1, 1) call does not match any available overload of QGridLayout.addWidget(). And it even shows you which ones are available, what the types of the arguments are, and which argument is causing it a problem! The Ui_... classes generated from Designer are not widgets. Have a look in the generated ui_...py files to see, then it's not such a mystery. They are wrappers which set up a widget passed as an argument. So soemthing like: self.graph1 = QtWidgets.QFrame() ui = GraphTemplate.Ui_Form() ui.setupUi(self.graph1) self...addWidget(self.graph1, 0, 0, 1, 1) However, this corresponds to the first example code in https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html. You would be better adopting the pattern in the second or third examples there. Where, for each .ui form you design you edit your .py file (not ui...py) to create a dedicated class for the form and use that as the widget. I haven't got time to go through and show exact code. You'll need to understand and follow the example, or find some online.
  • Cannot open include file: 'qvbox.h': No such file or directory

    Solved
    2
    0 Votes
    2 Posts
    305 Views
    jsulmJ
    @mesajflaviu This tutorial is for Qt 3! I suggest you start with recent Qt5 version instead. https://doc.qt.io/qt-5/qtexamplesandtutorials.html
  • 0 Votes
    2 Posts
    2k Views
    JKSHJ
    @Ahsan-Niaz said in Releasing exe for 32 bit windows from a 64 bit windows qt creator: Is it possible to add kits or whatever in my current qt creator. Yes As I already mentioned, I already have a project running perfectly on 64 bit windows. I want to create an exe that should run perfectly on 32 bit windows. Please guide me with what steps I should follow. Thanks Close Qt Creator Run MaintenanceTool.exe Select and install a 32-bit version of Qt from the MaintenanceTool Install a compatible 32-bit compiler If you're using MinGW, install it from the Qt installer If you're using MSVC, install it from Microsoft's website Open your project in Qt Creator and enable your 32-bit kit: https://doc.qt.io/qtcreator/creator-configuring-projects.html Build and deploy your application using your 32-bit kit I don't want to reinstall qt and select the packages or kits because its a headache. You don't need to reinstall Qt. You must install a new version of Qt on top of your existing installation. Recently, I had to run an exe released from 64bit windows qt creator for my client on his 32 bit windows. The bitness of Qt Creator does not matter. What's important is the bitness of your kit. (Qt Creator can manage many versions of Qt, both 32-bit and 64-bit, at the same time)
  • C2589: 'false': illegal token on right side of '::'

    Solved
    5
    0 Votes
    5 Posts
    789 Views
    J
    created https://bugreports.qt.io/browse/QTBUG-88591 A forced includes hell order due to QT_X11_DEFINES_FOUND crossing header files
  • QWindowsEGLContext: ANGLE only partially supports OpenGL ES > 3.0

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    Please_Help_me_DP
    I think I overcome the problem. In global NVIDIA settings I set high perfomance processor NVIDIA as a preferred graphical processor.
  • Sending data over internet

    Unsolved help internet qtcpserver qtcpsocket
    2
    0 Votes
    2 Posts
    737 Views
    JonBJ
    @BodyaGunko Hi and welcome. That's what running a web/HTTP server and exposing the IP over the Internet allows, from any client with a web browser.