<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[help to create  a circuit simulator-like interface]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm new to QT and I'm trying to create a gui for some command line kernel that I have in c++.</p>
<p dir="auto">I need to create some drag and drops for icons similar to what we see in those circuit composer/circuit simulators.</p>
<p dir="auto">here is an example of an interface that looks exactly like what I want to do, it uses<br />
<a href="https://streamable.com/6qb43v" target="_blank" rel="noopener noreferrer nofollow ugc">https://streamable.com/6qb43v</a></p>
<p dir="auto">So if we break it down to a list, the features I need are:<br />
1- Add straight lines and remove them<br />
2- add some single input gates/just some colored squares (drag and drop)<br />
3- a separator<br />
4- multiple input gates</p>
<p dir="auto">Being fairly new, I would appreciate if someone can link me to the appropriate QT resources and tell the easiest approach to achieve this.</p>
<p dir="auto">I'm assuming I need to create a Qframe, just add the + button inside. But, On mouse click action for the +,  how do I draw a line in the qframe?</p>
<p dir="auto">How do Make the drag and drop guided to specific area? I have only seen tutorials for drag and drop to a  big rectangular area but not something that drops the items in specific places like the circuit composer I showed above.<br />
Also How do I handle drawing the colored rectangles that I will drag from the toolbox on the black lines?</p>
<p dir="auto">I apologize for the noob question, Hope someone can guide me a bit...<br />
Thanks in advance</p>
]]></description><link>https://forum.qt.io/topic/120807/help-to-create-a-circuit-simulator-like-interface</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 11:41:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/120807.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Nov 2020 14:16:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to help to create  a circuit simulator-like interface on Sat, 26 Dec 2020 23:39:29 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for the late reply, I was expecting to get an e-mail notification but I received nothing, so I checked the forum manually and found your answers.</p>
<p dir="auto">@LeLev , thanks a lot for you link, but starting from such a big project for a newbie is a bit complicated, still thanks for the link.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gde23">@<bdi>gde23</bdi></a> , I have been been trying the diagram scene as you suggested for the last couple of days, it fits perfectly what I'm trying to achieve. Thanks a lot for telling me where to start!</p>
]]></description><link>https://forum.qt.io/post/634379</link><guid isPermaLink="true">https://forum.qt.io/post/634379</guid><dc:creator><![CDATA[mochi]]></dc:creator><pubDate>Sat, 26 Dec 2020 23:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to help to create  a circuit simulator-like interface on Sat, 14 Nov 2020 12:08:53 GMT]]></title><description><![CDATA[<p dir="auto">Take a look at the "Diagram Scene Example" in Qt Creator.<br />
Its an example creating a basic flowchart editor.<br />
There are some objects that can be drag and drop moved around and that can be connected with arrows that automatically snap to the objects.<br />
That is already relatively close to gates and wires.</p>
]]></description><link>https://forum.qt.io/post/627291</link><guid isPermaLink="true">https://forum.qt.io/post/627291</guid><dc:creator><![CDATA[gde23]]></dc:creator><pubDate>Sat, 14 Nov 2020 12:08:53 GMT</pubDate></item><item><title><![CDATA[Reply to help to create  a circuit simulator-like interface on Fri, 13 Nov 2020 14:29:24 GMT]]></title><description><![CDATA[<p dir="auto">hi<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/mochi">@<bdi>mochi</bdi></a><br />
This is done with qt<br />
<a href="https://github.com/Qucs/qucs" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Qucs/qucs</a></p>
]]></description><link>https://forum.qt.io/post/627191</link><guid isPermaLink="true">https://forum.qt.io/post/627191</guid><dc:creator><![CDATA[ODБOï]]></dc:creator><pubDate>Fri, 13 Nov 2020 14:29:24 GMT</pubDate></item></channel></rss>