Eike Ziller

Qt Creator 2.4.0 beta released

Published Thursday October 20th, 2011
42 Comments on Qt Creator 2.4.0 beta released
Posted in Qt, QtCreator

We are happy to announce that we have – right in time for the Qt DevDays – published a beta update to your (hopefully) number one Qt IDE today: The Qt Creator 2.4 beta.

The release contains a great number of smaller and bigger improvements and new features, that, combined, will make you want to not go back πŸ™‚

For me personally the most awesome feature & improvement is definitely the new “synchronize declaration & definition” quick fix, which helps you to do exactly that: Whenever you change a method declaration or definition Qt Creator tries to find its counterpart in your sources and headers. If it finds the counterpart you have to option to apply a quick fix (denoted by a little light bulb and invokable also with the Alt+Return shortcut) that will make the counterpart match the changes you did to the method.
Together with the improvements to the “insert definition from declaration” quick fix (it will now minimize the names by e.g. throwing away unnecessary namespaces, and find a much more suitable spot in the code), this is a real productivity boost when writing C++ code.

Semantic highlighting in QML

Semantic highlighting in QML


The QML editor also got lots of news, so for example a real “Rename usages” functionality and semantic highlighting. Additionally the coding style options, both for C++ and QML got redesigned to be saved as “schemes”, so it is easy now to re-use coding style settings in different projects, and also to share them. You can read more about these editor improvements in Christian’s blog post.

I’ll just mention a few of the other things before pointing you to the actual download links and urging you to try it out for yourself:

  • There have been lots of QML debugging bugs fixed, especially for mixed QML/C++ debugging
  • Even the preferences dialog should fit nicely onto a netbook now πŸ˜‰
  • The “advanced search” got a UI overhaul and you can access your most recent searches now
  • Much more!

Finally, a few words of advice:

  • If you don’t find the Qt Versions settings, they, the Tool Chains and Projects settings have been merged into a single category “Build & Run”

The packages are as usual on our developer.qt.nokia.com Qt Creator downloads page.

Do you like this? Share it
Share on LinkedInGoogle+Share on FacebookTweet about this on Twitter

Posted in Qt, QtCreator

42 comments

Oliver Knoll says:

Hooray! Say, can I update from within the latest Qt SDK by e.g. choosing some “experimental update channel”? Or do I have to download and install next to the Qt SDK? Will try tonight anyway…

Cheers, Oliver

Eike Ziller Eike Ziller says:

@oliver: No, the beta is not released through the SDK, you’ll have to get the Qt Creator -only binary package.

Brian says:

Congrats!
I still hope for a way to reformat the source code. In NetBeans you do this from the menu Source->Format.

Rene Huber says:

It is great to see the progress being made. However I still see the problem reported in QTCREATORBUG-6145 that prevents me from using recent versions of Qt Creator for cross compiling. When setting up a manual Qt version, it correctly shows the cross compile mkspec when hovering the mouse over the entry, but in build settings screen the effective qmake call uses the host mkspec, not the cross compiler mkspec. This used to work correctly in Qt Creator 2.2.

mgoetz says:

“synchronize declaration & definition” sounds really nice, especially for lazy developers. And every good developer is lazy πŸ™‚

Jim says:

The format problem ,Brian referred to would be nice.

Fabio says:

Thank you for the upgrade guys. I was wondering if there is an plan to develop, as core feature, an enhanced scroll ball.
This simple missing feature, makes me fall back to Visual Studio many times. Once you get it, you can’t give up :O

Example of this features are http://www.hanselman.com/blog/IntroducingRockScroll.aspx
Or the similar, but not as good as the previous one, http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef , Productivity Power Tool plug-in for VS2010.

I’m aware of this plug-in, http://gitorious.org/qt-creator-coolscroll-plugin, but as far as I’ve got, in order to install a plugin I need to rebuild QtCreator and linking the plug-in library :S Not so smooth though.

Cheers!

Alex says:

Ctrl+I auto-indents the selected text, is that what you’re looking for?

Scorp1us says:

2 things:
1. Is there an OVERWRITE mode yet?
and
2. When I was debugging multiple projects today, the debugger got confused (really, I think it was QtCreator setting breakpoints wrong)
To replicate open multiple projects and set some break points in one
Switch to the other project and debug that.
Somehow, even though the current project doesn’t have any breakpoints set, it will break on lines in files corresponding to the former current project.

Brian says:

@Alex
It’s not just about auto-indents, it’s about _reformatting_ the source code, so that it not only puts tabs instead of spaces (or vice-versa) but also aligns the braces and other stuff according to user’s settings for a given type of file (header, c source file, c++ source file). It’s (very) useful in different situations. For example when someone posts unformatted or poorly formatted source code that looks like spaghetti – you just paste it into your editor and select “reformat” and it looks like a piece of cake. Or when you take someone’s code and integrate it some parts into yours – just two clicks and it’s formatted like the rest of your project – very useful. NetBeans has such functionality (Eclipse probably too).

Brian says:

“and integrate it some parts into yours” = “and integrate some parts of it into your project”

sshtac says:

I don’t remember if this was a setting or not… but the previous version would not run the previously compiled application if the compile broke. 2.4.0 beta does… and I can’t find a setting to turn it off.

Is this the intended behavior?

thanks.

Bill King says:

@Scorp1us: You know the dance by now πŸ˜‰ File it as a bug report please if you haven’t already!

hatl says:

I really like Qt Creator but there are features i really miss:
– generate test case prototypes automatically
– inline help while typing (like in netbeans/eclipse)
– vertical line after 80 characters

kkoehne says:

@hatl: There’s “Other Project” , “Qt Unit Test” to generate test case & benchmark stubs. While typing e.g.a function call you get the names of parameters (what else do you want to see?). And the vertical line can be configured in Options, Text Editor, Display, “Display Right Margin at Column:”.

Jonathan Liu says:

@hatl: You can enable vertical line in Tools > Options > Text Editor > Display > Display right margin at column
2.4.0 beta has Subversion 1.7 support which I added yesterday πŸ™‚

hatl says:

for test cases i want something like that:
select a class -> generate testcases -> i get a test class in a test project which contains test case prototypes for every function in the selected class

inline help: displaying a short description for the function and for its parameters

thanks for the right margin hint!

Tobias Hunger says:

Rene Huber: That did improve a bit: The heuristic used to pick the Qt versions mkspec or the one provided by thy tool chain should fail now only if you are cross-compiling for a system similar to the one you are building of (same CPU, OS, word-width, etc.). A full solution will need a new target for all the cross-compilation configurations.

For now you can always force the mkspec by setting one manually in the qmake step (-spec whatever in the user arguments).

Sascha Kolewa says:

For me the dark color settings are broken in QML files. Dark grey on black for QML ids is really hard to read.
Or do I have to delete the QtCreator settings?

Acs says:

All Tabs Are replaced by space in editor!!!!

Rene Huber says:

@Tobias: Yes my cross compiler is for an embedded i586 architecture. Adding the -spec parameter to point to proper mkspec does correct the problem.

Yuriy says:

That the general between class name and a macro definition, in highlighting adjustments this turns out same

fra says:

@Scorplus: a10aabc9

MMM says:

Do you plan to include in QtCreator some multi-head facilities like multi windows for code?

Uku says:

I would like to say that scrolling in text editor now is extremely awful, slow, especially on mac. There are a lot of new precious things in Qt Creator, but why break so important simple things like scrolling in editor?

fonzi337 says:

@Tobias: Any chance Qt Creator bug 5083 (https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5083) has been or will be fixed? I have not been able to set up my build environment in Qt Creator for cross compilation and am currently forced to use the command line.

Christian Kamm says:

@Sascha: That was also reported as https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6375 and is now fixed in the 2.4 branch.

Artyom Smirnov says:

Nice to see Qt Creator’s growth! One thing I still miss in Qt Creator’s editor is inline diff integrated with VCS (like Eclipse’s Quick Diff) and other VCS stuff integration with IDE.

Yagiza says:

Subversion 1.7 fix? Hmm…
In previous version it was buggy. In version 2.4 beta it doesn’t work at all.
At least, I don’t see Tools->Subversion submenu for the projects under SVN v1.7 control!

Bojan says:

@sshtac: yes that’s strange. I’d like to know if it’s a bug too?

Igor Kruglov says:

It’s nice to see some of the problems with synchronizing definitions and declarations between .h and .cpp files are solved. Still there’s plenty of issues left:
– option “refactor->add definition to .cpp file” doesn’t appear if .cpp file doesn’t already have at least one method defined in it,
– using that option on constructor results in method being added without a class identifier (MyClass(){} instead of MyClass::MyClass(){})
– using it on destructor has the same effect as in previous case, including the method name containing no ~ in front

Kirill says:

Great IDE, I think! πŸ™‚
But what about multi monitor system configuration support?

Spec says:

Again, this will need to recompile using MinGW. Damn.
(Win + Qwt problem)

Ashagi says:

Still waiting for “Extract method” refactoring :

Jason says:

I found that QML inside , sometimes not prompt properties .

Wouter van Kleunen says:

Also a nice feature would be to build a single target when using cmake files. Now you have to build the complete project and checking all the targets takes really a long time. Or maybe the build system should be faster, because nmake is really slow and somehow jom is even slower for us.

Wouter van Kleunen says:

I guess qtcreator would be better off to generate vcproj files and use MSBuild to build, because it build much faster than using nmake files. Or maybe the cbp files can be build with some command line tool.

Nicola says:

Can you give some attention to QTCREATORBUG-2949 please? Autocompletion for c++ is still better in kdevelop than qtcreator and obviuosly qtcreator is better for other things and I want to use qtcreator

thanks
Nicola

Eike Ziller Eike Ziller says:

@nicola: the issue was still in “need more info” state waiting for a reply, and therefore didn’t even have a chance of being noticed…
I’ve reopened it now. You might be interested in trying our experiment with completely replacing our code model though, you can find more info e.g. here: http://labs.qt.nokia.com/2011/10/19/qt-creator-and-clang/

Behind a corporate firewall says:

Any hope to get a proper proxy support to Creator any time soon?
https://bugreports.qt.nokia.com/browse/QTBUG-2069

For example, most annoying is that update doesn’t work. Also prevents other use like online help usage (when links to web from help pages) and remote compiler use.

XOhere says:

@Acs:
Having the same problem here:
All the tabs I type are automatically converted into spaces regardless of the tabulator indentation option.
This used to work in QT Creator 2.3.0.

michael says:

would be nice to have some ubuntu ppa for qt-creator – just as eg. virtualbox have – (auto-updates)

Commenting closed.

Get started today with Qt Download now