a Flame Graph
Qt has nice toys
QtConcurrent consume a lot
You are not logged in. Please login or register.
QElectroTech → Posts by De-Backer
a Flame Graph
Qt has nice toys
QtConcurrent consume a lot
you may find it here,
https://git.tuxfamily.org/qet/qet.git/t … w.cpp#n195
it may also be that I am completely wrong
but even if you want to change this what should be the default function and how do you switch between
I could be wrong, but copy / paste removes information cross-references deliberately in the code.
=> uses a text editor and copy at hand.
I think it is easy to adjust it manually, you will spend more time setting the automatic mode
Ich denke, es ist einfach, es manuell einzustellen, Sie werden mehr Zeit damit verbringen, den automatischen Modus einzustellen
Bjarne Stroustrup answers the question "how do you handle big code as a new programmer"
Short version: use of code scanning, smart compilers, => so smart tools
https://youtu.be/86xWVb4XIyE?t=4882
in 0.8 place the part in the schematic again,
then QET will ask to adjust the others,
I thought this is how it works but this may have changed in the meantime.
1. New to GitHub? Create an account.
2. Fork https://github.com/qelectrotech/qelectr … rce-mirror see:
https://www.youtube.com/watch?v=HbSjyU2vf6Y
plc-user
if you have any questions ask them.
Bonjour,
dans la 0.8-dev et dans l’éditeur d’élément tu peux rentrer toutes ses informations pour chaque symbole que tu utilises.
Les champs informations de-l’élément sont statiques, mais en hackant le souce code tu peux en rajouter d'autres..
Laurent,
see
https://qelectrotech.org/forum/viewtopic.php?id=1792
and
https://qelectrotech.org/forum/viewtopic.php?id=1804
I think it's time to make a blueprint of QET, what we want, how we want it, and then make it.
Laurent,understand, (I) can only make minor changes to the code, major changes require a plan.
Joshua has a plan I think, and I don't want to get in his way.
He's been fixing to many mistakes from me lately.
Yes, I read the git logs, and it's never nice to know that I m responsible for the bugs reported.
Lars Knoll, Qt Chief Architect, gave a talk on what to get excited about at the recent QtWS
https://youtu.be/iiwdYk_Gpt8
CVS?
Computer visions syndrome (CVS) is a condition that an estimated 90% of people who spend 3+ hours on computers daily are said to suffer from to some degree. It results from concentrating on a computer monitor for extended lengths of time without interruption, and symptoms are dry, irritated, and strained eyes, headaches, double vision, polyopia, difficulty refocusing the eyes, and, in extreme cases, nausea, dizziness, and a general not well, seasick like feeling. Though there have not been any concrete long term problems found to be resulting from CVS, its effects can be severely debilitating for habitual computer users in the short term.
https://www.vagabondjourney.com/what-is … o-stop-it/
-how big is your screen?
-fit's the diagram of qet on your screen or you have to scroll?
-elements list do you have to scroll?
or what do you think that causes this?
Martin(e-mail) showed that there is a need for Code Style for Qet, which is there but hard to find.
He suggested the tool clang format.
https://doc.qt.io/qtcreator/creator-indenting-code.html
This topic will mainly be about installing clang in QT and usage.
Where that I further explain the usefulness of clang.
or watch this video:
https://www.youtube.com/watch?v=Cz36YveDI2E
I will complete this post later.
Edit:
- add clang file
- add code
- QString txt=QTime::currentTime().toString("hh:mm:ss.zzz");
- QByteArray dbs =txt.toLocal8Bit();
- QByteArray localMsg = msg.toLocal8Bit();
- const char *file = context.file ? context.file : "";
- const char *function = context.function ? context.function : "";
to
+ QString txt = QTime::currentTime().toString("hh:mm:ss.zzz");
+ QByteArray dbs = txt.toLocal8Bit();
+ QByteArray localMsg = msg.toLocal8Bit();
+ const char* file = context.file ? context.file : "";
+ const char* function = context.function ? context.function : "";
- Qt Creator enable the plugin:
To enable the plugin, select Help > About Plugins > C++ > ClangFormat. Then select "Restart Now" to restart Qt Creator and load the plugin.
- update clang file
mod
IndentWidth 8->4
TabWidth 8-> 4
BreakConstructorInitializers BCIS_BeforeColon->BCIS_AfterColon
BreakInheritanceList BCIS_BeforeColon->BCIS_AfterColon
still to be tested
-add clang file in to git repo
https://git.tuxfamily.org/qet/qet.git/c … 351c3e737b
some info from the link:
The main difference of multiline with respect to single line conductors is the posibility to display text which is linked to the conductor properties.
Laurent, I think it's great that you've been keeping this up for years. I'll probably be crazy about all those simple questions.
try ReadyToUse, you may be more lucky.
ending with its most recent commit about 1 year ago
time for an update
@S.DEFFAUX I skip this one
Have you ever wondered why some bugs take a long time to fix?
@ S.DEFFAUX
code:
https://git.tuxfamily.org/qet/qet.git/t … .cpp#n1769
void QETApp::configureQET()
{
// determine the parent widget to use for the dialog
// determine le widget parent a utiliser pour le dialogue
QWidget *parent_widget = qApp->activeWindow();
// create dialogue
// cree le dialogue
ConfigDialog cd;
cd.setWindowTitle(tr("Configurer QElectroTech", "window title"));
cd.setWindowModality(Qt::WindowModal);
cd.addPage(new GeneralConfigurationPage());
cd.addPage(new NewDiagramPage());
cd.addPage(new ExportConfigPage());
cd.addPage(new PrintConfigPage());
// associates the dialog with a possible parent widget
// associe le dialogue a un eventuel widget parent
if (parent_widget) {
cd.setParent(parent_widget, cd.windowFlags());
}
// display the dialog then avoid linking it to any parent widget
// affiche le dialogue puis evite de le lier a un quelconque widget parent
cd.exec();
cd.setParent(nullptr, cd.windowFlags());
qDebug() <<"configureQET"<<cd.size();
}
Debug: configureQET QSize(1400, 1000) (../../qet/sources/qetapp.cpp:1802, void QETApp::configureQET())
the 1000 is your problem, right?
Mod code:
if (parent_widget) {
cd.setParent(parent_widget, cd.windowFlags());
}
to
if (parent_widget) {
cd.setParent(parent_widget, cd.windowFlags());
cd.resize(parent_widget->size());
}
Debug: configureQET QSize(1280, 720) (../../qet/sources/qetapp.cpp:1803, void QETApp::configureQET())
but this is a problem for large screens.
if (parent_widget) {
cd.setParent(parent_widget, cd.windowFlags());
cd.setMaximumSize(parent_widget->size());
}
is ok
Preferred way to make QElectroTech:
md file
### Cloning
It's important to clone the repository recursively to get all submodules too:
```bash
git clone --recursive https://github.com/qelectrotech/qelectrotech-source-mirror.git qet && cd qet
```
### Updating
When updating the repository, make sure to also update all the submodules
recursively. Otherwise you may get strange compilation errors:
```bash
git submodule update --init --recursive
```
### Building
You can either build QElectroTech using Qt Creator, or you can build on the command
line using qmake. To build a debug version of QElectroTech with qmake/make:
```bash
mkdir build && cd build
qmake -r ../qelectrotech.pro CONFIG+=debug
make -j8
```
For more detailed instructions (including how to set up Qt Creator), see
a www eg=>https://QElectroTech/doc_building.html
I ran the Clang-Tidy tool on qet ... umm there are still a lot of improvements to be done.
Adding
// NOLINT
will also be needed in the code
suppressing undesired diagnostics
extra info
Memcheck also makes some comments.
merci, Laurent.
Laurent,
where does the "git6826." come from?
And how do you link this to the git ID SHA?
like this
ok fair enough, where can i find the info to packaging qelectrotech?
I will test this first before I make more problems.
ok fair enough, where can i find the info to packaging qelectrotech?
I will test this first before I make more problems.
ok thanks Joshua and Laurent for the info, there is a solution for "KColorButton" I think, for KAutoSaveFile I will look further.
And for git submodules is it allowed or not?
I would drop the support, Suse is also not supported (and I use it)
but we must get rid of KWidgetsAddons KCoreAddons (this makes it difficult to compile)
QElectroTech → Posts by De-Backer
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.030 seconds (43% PHP - 57% DB) with 6 queries