Your example will help me to figure out why a project which does not use QTDesigner to build the form won't compile as subdirs project.
My best guess it keeps "rebuilding " the form ( dialog) from code.
Can I "drag and drop" existing project as "add existing projects" to subdirs ?
Getting tired of superfluous responses , hence you cannot blame me on this one
Do you known what "?" stands for ?
Thanks for your help.
@AnneRanch said in File removed ...then save it ?:
No reply necessary.
Take it to the Tweeter then maybe? I don't find "yelling at the cloud" stance useful. If you don't want an answer (or don't care about the answer as you often do) what's the point of wasting anyone's time it takes to read your useless rants?
Can you share your top level .pro file? That is the project you should be loading when open a project in QtCreator, not any of the subdir projects (they will be loaded automatically with your top-level project).
True, but two things:
You have to "opt in" for this > 260 characters by altering a Registry parameter from its default, I doubt the OP has chosen to do this.
Although this relaxes the limit on certain Windows OS calls, it does not mean that applications do not have code with the original 260 character limitation. It only takes a program --- or the libraries it uses --- to use _MAX_PATH constant, which I believe is still defined as 260 or certainly used to be --- to find the program is still limited. I don't know know, but I wonder what MinGW or even MSVC are using here for their pathnames accepted from the user.
Could somebody kindly help me to figure out LAST part of my LAST post ?
Since I am a lazy person I like to reuse somebody else code.
I have made wrong choice and reused "btscanner" example BUT I modified it and interwoven it into my code. Now I regret this.
I am now using the same code as a library and have modified my main code as such. It works with ONE exception - I need to remove all of the interwoven code .
Part of the removal is to REMOVE references added to my .pro files - including "includes ". ( see mine previous post )
I prefer NOT to remove these references without some knowledge what is their purpose.
Personally since I am now able to modify the library code I would prefer other ways to discard the interwoven code - perhaps renaming the files...
Thanks, not sure how to interpret the documentation.
However just got burned by having the supdirs project in capitals and the .pro in lower case. Such as MDI / mdi. Now I cannot wi8nf the MDI project. after reboot. .
when a Qt project is created, core and gui are default settings.
Only when widgets are needed, you add widgets module.
It is unnecessary to remove
QT -= gui
and then add
QT += widgets
Both are needed actually.
QT += gui widgets
Originally, gui was used for widgets as well. Later, all widgets related classes were grouped into module widgets.
Just ensure you have done as @AxelVienna writes:
@AxelVienna said in How to save updated subdirs project ?:
Tools->Options->Environment->System->Ask for confirmation before exiting
You should always have that set. Then you don't have to do anything to explicitly save, like anything else you change in Creator it should save automatically or warn you on exit. You should not be experiencing your:
If I just exit the next time I reopen QTCreator my changes are gone.
The project .pro file I added as library DOES have QT bluetooth
as first line of .pro
For good measure I have added this to my main project.
''QT += core gui core bluetooth widgets
So the moral of the story is
add QT object macro to the .pro file of appropriate .pro file MANUALLY
Hi, thanks once again for the help. Is not Visual Studio Community 2019 (the one I have installed) part of Visual Studio 2019?
Anyways, using the compiler named "Default LLVM 64 bit based on MSVC2019" seemed to do the trick, I thought I had to use one of the ones names "c++ compiler". The example bluetooth project can now run correctly, thanks a bunch for the help everyone! Marking this thread as Solved.
@CristianoNarcisiVidex said in Run test as superuser inside QtCreator:
because of my OS is Ubuntu, i need the super user permission for opening that port
You simply have to add your user to the group which has access to the device file of your serial port.
"The issue with the permissions for /dev/ttyACM0 can be permanantly solved by adding yourself to the dialout group.
You can do this with:
sudo usermod -a -G dialout $USER
Logout and then log back in for the group changes to take effect.
@andr1312e its a feature requests, and that page linked is the official page for qt for bugs and feature requests.
If you're up for it, feel free to make a patch for QtC and submit it :D
It is open source after all!
@juve938383 said in QT Kit and Code:
but the two default ones don't seem to be suitable
Why? What Kits are those (what Qt version is used?)?
"I guess this should give some info on the version?" - to find out which Qt version is configured in a Kit go to the Kit and check which Qt version is configured there.
"Anything I can do to figure out what kit I need?" - yes, answer this question: "What platform do I target?". If you need desktop then install Qt for your target desktop platform (like Qt for Windows or Linux).
Hi @JustASimpleCoder, I received a quick response from Qt staff, it seems that Qt6.2 version of qmlformat contains what we need! :)
Usage: ./qmlformat [options] filenames
Formats QML files according to the QML Coding Conventions.
-h, --help Displays help on commandline options.
--help-all Displays help including Qt specific options.
-v, --version Displays version information.
-V, --verbose Verbose mode. Outputs more detailed information.
-i, --inplace Edit file in-place instead of outputting to
-f, --force Continue even if an error has occurred.
-t, --tabs Use tabs instead of spaces.
-w, --indent-width <width> How many spaces are used when indenting.
-n, --normalize Reorders the attributes of the objects according
to the QML Coding Guidelines.
-F, --files <file> Format all files listed in file, in-place
-l, --newline <newline> Override the new line format to use (native macos
filenames files to be processed by qmlformat
@J-Hilk, on the laptop, primary HD screen, there's no scaling and the primary screen is disabled. Secondary screen, 4k monitor, is connected via HDMI and it is enabled. So when I turn on the laptop, everything is displayed only on the secondary screen.
I don't use two screen at the same time so there's no moving things between screen.