Skip to content
  • 143k Topics
    718k Posts
    W
    @jeremy_k said in Issues with link switching via keyboard in QPlainTextEdit: Have you considered QTextBrowser? It has link handling APIs, and tab navigation between links works. I was hoping to avoid having to use a different widget since I've already built most of my app around the QPlainTextEdit. Besides, I vastly prefer its scrolling behavior. QTextEdit and QTextBrowser both cut off the text when the user scrolls past it, leaving it partially visible at the top of the window. QPlainTextEdit doesn't. It's a nice visual feature that makes the app feel much smoother. Switching to QTextBrowser seems like a viable solution, though I'll have to modify my existing code to work with it. I would prefer to keep the QPlainTextEdit scrolling behavior somehow if possible. Is there any particular reason why that flag doesn't work with QPlainTextEdit?
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    piervalliP
    See you later.
  • 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.

    385 2k
    385 Topics
    2k Posts
    B
    How can I retake a course? There seems to be no way to do this. Why not?
  • 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
    Axel SpoerlA
    @anik Thanks for reporting this. I will take this up internally and report back to you. Just a question: Have you responded to any of the emails from the screenshot to say that you didn't want to be contacted?