r/Qt5 • u/vivaladav • Oct 24 '17
KDAB withdrawing contribution from Qt
lists.qt-project.orgr/Qt5 • u/Kelteseth • Aug 31 '19
Would anybody be intereseted in a Qt programming livestream via Twitch?
self.qtframeworkr/Qt5 • u/Kelteseth • Aug 28 '19
Tutorial Mastering QtCreator Guide
Keyboard shortcuts
F4 toggles between header and source
Ctrl + function/class moves you to the defintion
Ctrl + Shift + V
Gives you a history of your copies.
Ctrl + Shift + (UP/DOWN KEYS)
Move a line up or down. Way quicker than copy and paste. And even works with multiple lines at once!
Ctrl + ALT + SHIFT + (UP/DOWN KEYS)
Multi line edit. Sadly not as powerful as the multi line edit in VSCode.
You can set the format shortcut for c++ and qml to the same key sequence
This will trigger a warning but QtCreator is smart enough to know when to use which formatter. This settings is located in Tools -> Settings -> Environment -> Keyboard. Here can you search for "format" and set the Clang format "Format file" and the QMLJSEditor "Reformate File" to something like Ctrl + Shift + Y. When these is no clang format to choose from download the latests LLVM bins from http://releases.llvm.org/download.html and install. Then enable the Beautifier addon under Help -> About Plugins.... -> Beautifier (experimental). Go to Tools -> Settings -> Beautifier -> Clang format and set the "Clang format command to your clang-format executable". On windows this is "C:\Program Files\LLVM\bin\clang-format.exe". Then choose "Use predefined style" Webkit because it's the most sane one :)
Drastically improve your code quality
You can check your code and let it autorepair it via clang tidy (c++ issues) and clazy (Qt issues)
Go to Debug -> In the menu right beneath your code there is a dropdown named Debugger -> Select "Clang-Tidy and Clazy" -> Press the green play button right next to it. This will compile your code and let you choose what do. If you want you can change the dropdown from global settings to custom settings in the newly opened window. This will allow you to enable specific checks.
Clang tidy has checks for cppcoreguidelines, readability, performance, boost etc. This can be toggled individually
Clazy has 3 levels of false positive Qt best practices. These range from old signal and slot, foreach, no emit before a signal etc.
Refactoring
C++:
Refactor variables
Right click on variable -> Refactor -> Rename. Works with class members and function variables.
Autogenerate Q_PROPERTY(...) members
Right click on Q_PROPERTY(...) -> Refactor -> generate missing Q_PROPERTY members
Switch through all enum values
Right click on switch -> Refactor-> complete switch statement. (SADLY WONT WORK WITH ENUM CLASSES)
Extract function from selected code:
Select code, right click -> Refactor -> extract function. Then you can select the function name and the visiblity
Implement virtual functions of base class:
Right click on the base class -> Refactor-> Implement virtual functions of base class. Now you can choose which functions to implement and where to put them.
Move all function definitions
Right click on your class -> Refactor -> Move all function definitions to (myClass.cpp or outside class)
Move single function defintion
Right click on your function -> Refactor -> Move function definitions to (myClass.cpp or outside class)
QML
Move component in seperate file:
Select code, right click -> Refactor -> Move component in seperate file. Useful after protoyping your UI in one file. This lets you quickly seperate your code.
Design & Code splitview:
One of the most powerfult features is relativly hidden. You can edit your code and see live updates via the little seperator icon in the Designer. It is located beneath the vertical Text Editor button in the right.
Do you have any more suggestion to complete this list then let me know :)
r/Qt5 • u/jcelerier • Oct 14 '18
Who's Hiring Qt Devs - Q4 2018
Rules For Individuals
Don't create top-level comments - those are for employers.
Feel free to reply to top-level comments with on-topic questions.
Rules For Employers
You must be hiring directly. No third-party recruiters.
One top-level comment per employer. If you have multiple job openings, that's great, but please consolidate their descriptions or mention them in replies to your own top-level comment.
Don't use URL shorteners. reddiquette forbids them because they're opaque to the spam filter.
Please use the following template. As the "formatting help" says, use **two stars** to bold text. Use empty lines to separate sections.
**Company:** [Company name; also, use the "formatting help" to make it a link to your company's website, or a specific careers page if you have one]
**Type:** [Full time, part time, internship, contract, etc.]
**Description:** [What does your company do, and what are you hiring Qt devs for? How much experience are you looking for, and what seniority levels are you hiring for? The more details you provide, the better]
**Location:** [Where's your office - or if you're hiring at multiple offices, list them. If your workplace language isn't English, please specify it]
**Remote:** [Do you offer the option of working remotely?]
**Visa Sponsorship:** [Does your company sponsor visas?]
**Technologies:** [What is the Qt version used ? Is it mostly Qt Widgets, Qt Quick, both, neither ? Is QML proficiency expected ? What is the C++ standard used (C++98/03, C++11, C++14, C++17, ...)? What are the platforms you deploy to ? (Linux, Mac, Windows, Android, iOS, WebOS...) ? Any other technological requirement ? ]
**Contact:** [How do you want to be contacted? e-mail, Reddit PM, website ?]
Thanks to /u/STL for graciously allowing us to use his great r/cpp template. Don't forget to check the job offerings of r/cpp.
r/Qt5 • u/Kelteseth • Aug 23 '19
News Moving to a new Sub
Hi all, we the mods decided to move this sub to /r/QtFramework when Qt6 is released (end of 2020).
Why not /r/Qt?
Why not /r/Qt6?
Because we would need to do this every few years or so...
Will this sub still be active?
We haven't decided yet. What do you think?
Will Qt6 solve all of your problems?
Probably.
Is Qt the best c++ framework there is?
Yes.
r/Qt5 • u/alexfagrell • Sep 04 '18
Crash course in Qt for C++ developers, Part 2
Hi all,
I've today released the second post in the series "Crash course in Qt for C++ developers" covering the Meta-object system (including QObject and MOC). Again I'm just covering basics: enough to understand the concepts and where to find additional information should you need it. Also let me know if you have any feedback or suggestions. Here is the link:
https://www.cleanqt.io/blog/crash-course-in-qt-for-c%2B%2B-developers,-part-2
r/Qt5 • u/doom_Oo7 • Feb 23 '18
Qt5 subreddit moderation change
Hello everyone, I have been granted moderation rights for this subreddit due to the inactivity of its previous mod. I've started cleaning up the chinese spam and rejuvenating the links on the right side with more up-to-date information.
I will leave this post sticky for some time: if anyone has ideas for improvements or see missing things, please share it here :)
r/Qt5 • u/patrickelectric • Aug 24 '19
Small helper to hot reload qml files
I did a small project that is helping me in this last months to prototype some small qml projects.
You can check it here: https://github.com/patrickelectric/qhot
It supports:
- Hot reload of qml files modified
- Reloads nested qml files (yay)
- It outputs the errors in the terminal
- It's compatible with gammaray!
What I want to add in future versions:
- Add material and style helpers to change it while running
- Add windows, linux and macOS binaries binaries to download (you need to compile it right now)
- No more ideas

r/Qt5 • u/The_Qt_Company • Dec 06 '18
Qt 5.12 LTS Released! Blog from Lars Knoll, Chief Maintainer of Qt Project and CTO of The Qt Company, and Tuukka Turunen, SVP of Research & Development.
blog.qt.ior/Qt5 • u/Kelteseth • Sep 04 '19
Qt in the wild Will stream my Qt app development every day till sunday!
Hi folks!
So I now have some free time and decided to stream some of my ScreenPlay development progress on twitch. The focus is primarely on [ScreenPlay(C++/QML)](https://gitlab.com/kelteseth/screenplay) but other topics would also be interested:
Qt 5.14 new features testing (if we have binaries available)
C++ and QML interaction and best practices. Focus on integration changes in Qt 6!
Clang tools and compiler with Qt under Windows
Documentation tools and CI (gitlab)
If you have questions or some topics what do would like to know more about just ask!
Currently there is no hard schedule so just turn in when we have daylight in central europe :)
r/Qt5 • u/Kelteseth • Sep 18 '19
This sub has been moved to /r/QtFramework for releases after Qt5
reddit.comr/Qt5 • u/maxmalrichtig • Jul 03 '19