[Qt-creator] Quick test or scratch-pad mode in qtc?
André Hartmann
aha_1980 at gmx.de
Sat Dec 22 17:13:51 CET 2018
Hi Alexis,
> I was wondering if this would be totally stupid to have a mode in QTC
> were we could code in a single source with no Build System setup?
[...]
> is so convenient to just start writing code without any setup.
Sounds good.
> But this has many drawbacks like, no or almost no completion, no debug
> and needs internet.
So may I ask what your goal is? Is it:
* Proof that your code compiles?
* Run a small (console) application?
* Look at the generated assembly output?
In principle, one could think of a "scratch" wizard, that
* Creates a project with a unique name like
"QTC-Scatch-2018-12-22-17-08"
* Uses qmake as build system
* Uses the default "desktop" kit with it's Qt version
and compiler
* Adds a main.cpp and opens it in the editor
You could than choose other compilers through the usual Projects mode,
build, run and debug your project. Other compiler options could be set
in the Project .pro file.
That would reduce the setup to two or three clicks and looks simple
enough to be integrated without big effort.
What do you think?
Best regards,
André
Am 22.12.18 um 12:12 schrieb Jeandet Alexis:
> Hello,
>
> I was wondering if this would be totally stupid to have a mode in QTC
> were we could code in a single source with no Build System setup?
> I always go to websites like coliru, godbolt, wandbox,... to do some
> tests(test concepts, see if I can template something,...) because this
> is so convenient to just start writing code without any setup. But this
> has many drawbacks like, no or almost no completion, no debug and needs
> internet.
>
> In QTC I would easily see a section in welcome page "scratch-pad" with
> previous ones and a button to create a new one. I don't think we should
> care about file location or any setup, source files could be stored in
> QTC user data folder. Maybe we could just switch among available
> compilers and set manually compile args like godbolt.
>
> Am I the only one who miss this feature?
> If no I will definitely open a BR.
>
> Best regards and happy holidays,
> Alexis.
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
>
More information about the Qt-creator
mailing list