[QtCreator] Clicking light bulb forces .h file to be displayed
-
Just updated QtCreator to 8.0.2, but the problem persists in older versions as well.
When you modify a function declaration in .h file, a light bulb icon will appear. Clicking it will update the corresponding .cpp file to match the function definition.
However after clicking the light bulb, QtCreator tries to switch back to .h file. Even if you opened the .cpp file, you will be redirected to the .h file after a second. Closing the .h file is not helping as it will be reopened. The only way to solve the problem is to close QtCreator completely.