Skip to content
  • 143k Topics
    718k Posts
    F
    Linked to the issue I mentionned here: https://forum.qt.io/post/831373 This happens on Windows 11, QtCreator 17.0.0, when compiling Qt5 or Qt6 projects. When adding compiler flag using the QMAKE_CXXFLAGS variables they are taken into account by the Code Model but the Code Model seems to always consider spaces as flags delimiters (even when the flag is surrounded by properly escaped double quotes). One usecase we have at my workplace is when using the /external:I from MSVC cl or /imsvc from clang-cl instead if using QtCreator INCLUDEPATH variable. We do that to allow the inclusion of an external library without having the compiler generate warning from the library's header files. This works fine unless there is a space in the include path. For example if I have QMAKE_CXXFLAGS += /imsvc\"C:/path with spaces /to/include/folder\", the code will compile and run fine but the code model will split this into 4 flags (/imsvc\"C:/path, with, spaces and /to/include/folder\") : [image: 1b4b1823-2977-4739-9d2c-cefb7e091fca.png] This causes the code model to break itself, consider it is setup for CXX98 and generates warning everywhere. Is there a way to escape those inner spaces (I tried to put a \ in front of the spaces but it doesn't seem to work) or to declare an external include path using a Qt variable ?
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    Christian EhrlicherC
    So since it's a compiler bug - what should Qt do against it?
  • Everything related to designing and design tools

    129 389
    129 Topics
    389 Posts
    osirisgothraO
    I have a pretty decent setup for development I notice that QT design studio eats resources like candy -- even if my PC can keep up with it, the fans all kick up into high gear as if I had just accepted 30 network rendering jobs. Its only in the studio though, application performance itself is fine, and in QtCreator/Designer things are fine, just that monster seems to eat and eat, I am not surprised at all to hear people with setups under and at mid-end find it completely unusable. Maybe it has something to do with latest trends showing that environments like Unity can prove new developers really will just upgrade and upgrade and not bat an eyelash, carbon emissions be darned we need more games over here! :3
  • Everything related to the QA Tools

    79 215
    79 Topics
    215 Posts
    M
    I have a desktop app which runs on linux. I have my own laptop which runs on windows. I downloaded squish for windows on my own computer. I downloaded vncserver(tigervnc) on desktop app. Hoping to reach to my desktop app via using VNC on squish IDE and record scenarios. On my computer I created test suite, selected VNC as GUI toolkit. I did my configuration as needed under "Server Settings > Manage AUTs > Attacable AUTs". After that created test case and hit record button but got this error lines. "Warning: AUT '__squish__vncaut' (with AUT path '') does not exist FATAL Starting application Application '__squish__vncaut' could not be started. Squish couldn't start the AUT because the program doesn't exist. Make sure the AUT is really built and was not removed. Also make sure that the path to the AUT is correct in the settings. END End of test Giving up after error" I'm sure my vnc server runs on my desktop app. In https://forum.qt.io/topic/155170 i get that we might have similar issue. Should i download squish for qt? Or should i just download squishserver on my desktop app and expect it to be resolved? If i should download squish server on my desktop where can I the server package without downloading whole installation package on the application?
  • Everything related to learning Qt.

    386 2k
    386 Topics
    2k Posts
    T
    The generated "*.ui.qml" files by QT Design Studio, create an "id" for each component but do not generate an "objectName". Finding components is typically done using the "objectName". Is it possible to ensure QT Design Studio generates an "objectName" for each component? If not, how is one supposed to be able to find/reference the components from python or c++?
  • 2k Topics
    13k Posts
    Chris KawaC
    Don't use timers for game tick. They are completely unsynchronized with the display refresh rate and you'll always get stutter. You can't make it smooth that way. Definitely don't use msleep or the like either. That's not what it's for. Change your approach - don't assume a constant for the time interval, that's not happening either. There's no software or hardware that supports that and no serious game engine does it like that. Instead do your game tick calculation and request display update at the end, e.g. QWindow::requestUpdate. In your paintEvent do your rendering and start another game tick. Qt is (by default) synchronized for 60Hz output. If you sync it properly using monitor v-sync the game runs as smooth as is physically possible and it only takes as much CPU as it needs and no more (Qt idles out when waiting for display's vertical refresh). That's the basic version. A more advanced version is where you run separate game and render threads and do a so called pipelining - update Nth frame game state on one thread while rendering N-1 frame on render thread. It requires a bit more setup and is necessary when you have so much calculation that you can't fit it together with rendering in a single 16ms window. For simple cases, where your calculations take less than that the first approach is fine, you don't need separate thread. In any case don't use QTimer for any of that. Don't try to ask for specific time, that's not gonna happen and if you base your animations on that assumed constant interval they will always be choppy. Even if you manage to tweak it on your machine it will break on another, where the timings are a little off compared to yours. Instead measure how much time has actually passed from last frame (use QElapsedTimer for that, like in your threading approach) and use that as a delta time value that you multiply all your movement, animations, velocities etc. by.
  • 4k Topics
    18k Posts
    K
    大佬们,为什么我运行qt creator(QT版本为5.9.3)的时候,无响应,看任务管理器,内存占用率到500mb一段时间进程就退出了,也没有任何窗口显示,有大佬遇到过这种问题吗?![image: 8c6ef968-5faf-4149-9a27-52ffbfac8f34.png] image url)
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    Hi, Suggestion heard and acted on