Topic: Uneven printed conductor strokes and dense PE dash-dot pattern

Hello,

I am using QElectroTech 0.100.0 on Windows 11, built and running with Qt 5.15.18, x86_64.

I have two questions about native electrical conductors.

Uneven printed appearance

The conductors have the same Appearance settings: black, Size 0.50, secondary colour disabled. Nevertheless, some lines appear thicker or darker than others in PDF output and on paper.

Export to PDF produces vectors and looks better than printing through a PDF printer, which produces image objects. However, the unequal appearance is not completely eliminated.

The project was generated programmatically from an existing drawing, using native QET elements and conductors. Could overlapping conductor segments, symbol connection strokes or a rendering setting explain this? What would be the best way to distinguish a project problem from a PDF/printer rendering problem?

PE dash-dot spacing

The native dash-dot pattern is too dense at the required thin line width. I need a long dash, clear gap, dot, clear gap, repeated.

Can the dash and gap lengths be adjusted independently of conductor thickness while retaining a real electrical conductor that follows connected elements?

I found the older “Project Scale” discussion, but its Custom dash line suggestion appears to concern graphical shapes.

Is there an existing setting, newer fix or patch for either issue? If independent conductor dash spacing is not supported, should I submit a feature request?

I can provide a reduced .qet example, the exported vector PDF and photographs of the printed result.

Thank you for your help.

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

Hi Victor, thanks for the detailed report.

First, 0.100 is quite old. Please try the latest 0.200.1 dev build, since a lot has changed in rendering and export since then.

Uneven strokes: zoom in strongly on the vector PDF. If all conductors have the same width when magnified, the issue is the viewer’s or printer’s thin-line rasterization, not the project. In Acrobat, try disabling “Enhance thin lines”, or compare with another viewer. If some lines stay thicker when magnified, check your generated project for duplicated or overlapping conductors, or conductors drawn over element connection strokes. Two identical antialiased lines on top of each other look darker.

PE dash-dot: Qt’s built-in dash patterns scale with pen width, so a thin line gives a dense pattern. Conductors currently don’t expose independent dash and gap lengths, so yes, please open a feature request on GitHub.

And yes, I’d gladly take your reduced .qet example, the exported PDF and the photos of the printed result. Real-world files like these are very useful for testing code changes. You can attach them here or to the GitHub issue.

Best regards,
Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

Hi Laurent,

Thank you for suggesting the latest 0.200.1 dev build.
I downloaded it and have been testing it over the past two days.
There are many useful new functions and substantial improvements to the user interface.
However, the two issues I reported with version 0.100 are still present:
-    Some conductor lines remain visibly thicker when magnifying the PDF, and I also see the difference on paper.
-    The PE dash-dot pattern is still too dense. As you explained, independently adjustable dash and gap lengths would require a new feature.

I have prepared a reduced example project and attached it here, together with exported and printed PDFs, screenshots and scans of the paper printouts. Please take a look when you have time.

I have attached the reduced example project, Test1.2.qetz, together with three PDFs:
-    Test1.2_export_in_pdf.pdf — exported directly from QElectroTech.
-    Test1.2_print_as_pdf.pdf — printed from QElectroTech through the Foxit PDF printer.
-    Test1.2_print_real_scanned_.pdf — scans of pages printed directly from QElectroTech onto paper.
Direct printing produces visible differences in conductor thickness, both on paper and through the PDF printer. However, exporting to PDF first and then printing that exported PDF on the same physical printer gives a smooth, uniform result.

I have also noted a few other small issues and possible improvements during my testing.
I will collect those in a separate forum topic to keep this discussion focused on the two conductor issues.
My observations come from practical use and comparison with other electrical CAD programs I have worked with.
I am not expecting QElectroTech to match EPLAN, WSCAD or SolidWorks Electrical…; it is already a very useful open-source project in its own right.

The AI integration is particularly impressive.
I have successfully tested it with GPT Codex, and it works well in my setup.
Congratulations to everyone contributing to the project—this is excellent work, and I look forward to seeing it develop further.

Best regards,
Victor

Post's attachments

Attachment icon Test1.2.qetz 43.24 kb, 24 downloads since 2026-10-26 

Attachment icon Test1.2_export_in_pdf.pdf 63.33 kb, 25 downloads since 2026-10-26 

Attachment icon Test1.2_print_as_pdf.pdf 414.12 kb, 30 downloads since 2026-10-26 

Attachment icon Test1.2_print_real_scanned_.pdf 1.64 mb, 30 downloads since 2026-10-26 

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

Hi Victor,

Thanks a lot for the files and the careful comparison. The fact that exporting to PDF gives a uniform result while direct printing does not is the key clue: your project is fine, the problem is in QET’s print path.

For the developers who want to pick this up (Shane or anyone else), here is the diagnosis:

In sources/print/projectprintwindow.cpp, ProjectPrintWindow::requestPaint(), there is a Windows-only block that forces the printer resolution to the screen’s logical DPI (m_printer->setResolution(screen()->logicalDotsPerInch())), typically 96 dpi.
Conductor::paint() (sources/qetgraphicsitem/conductor.cpp) draws with antialiasing disabled.
At 96 dpi, a thin conductor lands on either 1 or 2 device pixels depending on its exact position, i.e. about 0.26 mm or 0.53 mm on paper. That is exactly what Victor’s scans show. The PDF export uses a different, high-resolution vector path, which is why it looks right.
Possible fix: drop that setResolution() call or use QPrinter(QPrinter::HighResolution). Before doing so, check with git blame why it was added (probably a font-size workaround on Windows HiDPI), so that issue doesn’t come back. Optionally enable antialiasing for conductors when painting to a printer device. Victor’s Test1.2.qetz and his scans are a perfect test case.
Victor, until then your workaround (export to PDF, then print the PDF) is the right one.

For the PE pattern: confirmed, Qt’s dash-dot pattern is defined as multiples of the line width, so at 0.5 it becomes very dense. Today the only adjustable dash length (m_dash_size) is used for the secondary colour only. Please open a feature request on GitHub for a conductor dash pattern with independent dash/gap lengths, and attach Test1.2.qetz there as well.

And thanks for the kind words. Just to be clear, QElectroTech has never tried to compete with EPLAN or anyone else: it is a free, community-driven tool that grows with what its users need, and feedback like yours is what keeps it moving. A separate topic for your other observations is perfect.

Best regards,
Laurent

Post's attachments

Attachment icon reponse_forum_victor.txt 2.73 kb, 34 downloads since 2026-10-26 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

@Victor: https://github.com/qelectrotech/qelectr … sions/1623

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

@scorpio810:

Hi Laurent,

After almost a week of trials, code changes, and repeated testing, I have resolved the original printing problem in my modified build, along with several other issues. During this work, I also developed the code further, adding functions and settings to meet the needs of my day-to-day work with QElectroTech.

I have been testing and refining this version using my own projects, and the results are now working well for my needs. I would be happy to share everything with the development team for review:

The modified source code.

A ready-to-run portable Windows build.

Instructions for building and running it.

An explanation of what was changed, how the changes work, and what was tested.

Could you please let me know where and in what format you would prefer me to submit these materials? I would be glad to follow your preferred contribution process.

My hope is that some of this work might be useful to the team, either as inspiration or for possible inclusion in future versions, after your review and any further testing or adjustments you consider necessary.

Thank you for your support and for all the work that goes into QElectroTech.

Best regards,
Victor

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

The best and easiest way is to make a pull request on Github

8 (edited by victor.ienea 2026-10-29 17:31:43)

Re: Uneven printed conductor strokes and dense PE dash-dot pattern

Thank you for recommending a GitHub pull request. I have submitted my Custom 2.6 source changes here:

https://github.com/qelectrotech/qelectr … /pull/1650

I developed and revised these changes with AI assistance over approximately 26 iterations, and I have personally tested the custom Windows portable build.

The pull request is currently a draft. Its source combines my changes with the official source, and that combined version still needs a fresh build and test run. Documentation and the validation report for my original custom build are included.

If anyone would like to try the unofficial Custom 2.6 Windows portable build, I can share it together with example files and usage instructions. Please test it on copies of your projects. It corresponds to my original custom source, rather than the newly combined PR source.

Feedback is welcome, including guidance on splitting the contribution into smaller pull requests.

Post's attachments

Attachment icon QET_Custom_2.6_Community_Change_History.txt 83.05 kb, 29 downloads since 2026-10-29