I’m developing a GUI in Qt Creator 4.7.2. I installed it using the standard online installer form here.
My MainWindow
class now contains ~10.000 lines of code. It is now extremely annoying to develop code in this class because the code auto-completion takes forever. My code is quite standard I think. I do not define billions of different variables or functions and I do not use some other fancy advanced things… I just write normal code.
If I want to call a combo box I usually just start by typing ui->comboBo
and it usually provides a list with all variables accessible variables which match the name like ui->comboBox_1
, ui->comboBox_foo
, ui->comboBox_bar
…
It takes ~20sek until the code completion works, which now makes it so that I am mostly scrolling through files looking for variable names and copy-pasting those. It is not possible to work efficiently.
It works almost instantaneously in new/small files.
Is there any trick that I can use to speed up the code auto-completion?
To make things clear: I’m not looking for a way to speed up my code… I’m looking for a way to increase the speed of my IDE. I’m not really familiar with all the option an IDE brings in the settings, so I have no idea where to start looking. I also just recently switched from Ubuntu 16.04 to 18.04 and am using a new computer (which is way better… really) and I do not recall such a problem on my old machine.