<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello,</p>
<p><br>
</p>
<p>I would like to create an user-friendly GUI designer using Qt Designer and custom widgets.</p>
<p><span><br>
</span></p>
<p><span>I imagined an environment using Qt Design where customized widgets are available in the widgets box. The user will
<span>compose an interface</span> by just drag-and-droping them in a form, connecting them only with the available signals and setting properties. After that the user runs the preview mode (ctrl+R) and the form is ready to use.
<br>
</span></p>
<p><span>I think the preview mode fits what I have in mind because it is responsive with every widget and connection I made until now. Its is way to make the process of making an interface to be automatic for users without programming knowledge. </span></p>
<p><br>
</p>
<p>First I made I prototype of an simple custom widget (label): this is a sub class of QLabel which contains a QThread. This QThread reads a variable every 1 second and emits a signal with its value. The custom label class gets this signal and updates its text
property with the received value. When I write a simple application that imports it, it runs smoothly: the custom labels updates its text every 1 second.</p>
<p><br>
</p>
<p>Then I made a plugin with this class in order to use it inside Qt Designer. I can create a form with the custom label, convert the .ui to .py, write an application importing it and run. Again it works well!</p>
<p><br>
</p>
<p>Now I need <span>the custom label to</span> be responsive when one enters the preview mode, in other words, with its text updating every second. However the updates doesn't occur, the text keeps fronzen, except when I move/resize the custom label in the
edit mode (or anything that forces the Designer to update its entire GUI).</p>
<p>Recently I used a Designer plugin that does exactly the same thing, but its written in C++. I need to have this effect in Python.</p>
<p>To make a summary: plugins are responsive in the preview mode but for the custom ones containing QThreads.<br>
</p>
<p><br>
</p>
<p>Is there a way to do this? Any other way to run the composed interface automatically in Qt Desinger? Searched every where but got nothing.</p>
<p>Thanks for any help!<br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span dir="ltr"><font face="Calibri,Arial,Helvetica,sans-serif" color="#3366FF" size="2"><span style="font-size:10pt; background-color:white"></span></font></span><span style="color:rgb(117,123,128); font-family:Consolas,monospace">'''</span></p>
<p><span style="color:rgb(117,123,128); font-family:Consolas,monospace"><b><u></u>Laís Pessine do Carmo</b><br>
</span></p>
<p><span style="color:rgb(117,123,128); font-family:Consolas,monospace"></span><font color="#006FC9" size="2"><span style="font-size:11pt; color:rgb(0,0,0)"><span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)">Computer Engineering
</span><span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)">T</span><span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)">rainee at Beamline Software Group</span></span></font><br>
</p>
<font face="Calibri,Arial,Helvetica,sans-serif" color="#3366FF" size="2"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif">
<div style="margin-top:0; margin-bottom:0"><font face="Calibri,Arial,Helvetica,sans-serif" color="black" size="3"><span style="font-size:12pt"><font color="#006FC9" size="2"><span style="font-size:11pt"><span style="color:rgb(0,0,0); font-family:Consolas,monospace"><span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)"></span><b><span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)">Brazilian
Synchrotron Light Laboratory - </span></b></span><b><span style="color:rgb(117,123,128); font-family:Consolas,monospace; font-size:12pt">L</span><span style="color:rgb(117,123,128); font-family:Consolas,monospace; font-size:12pt">NLS</span></b></span></font><b><font color="#006FC9" size="2"><span style="font-size:12pt; color:rgb(117,123,128); font-family:Consolas,monospace"><br>
Center of Research in Energy and Materials - CNPEM</span></font></b><font color="#006FC9" size="2"><span style="font-size:12pt; color:rgb(117,123,128); font-family:Consolas,monospace"><br>
+ 55 (11) 94233-7721</span></font><font color="#006FC9" size="2"><span style="font-size:11pt"><span style="color:rgb(117,123,128); font-family:Consolas,monospace; font-size:12pt"> <span style="background-color:rgb(255,255,255)">
</span></span><span name="searchHitInReadingPane" id="0.768250062297091" class="highlight" style="color:rgb(117,123,128); font-family:Consolas,monospace; font-size:12pt; background-color:rgb(255,255,255)">lais.carmo</span><span name="searchHitInReadingPane" id="0.5587804111142429" class="highlight"></span><span style="color:rgb(117,123,128); font-family:Consolas,monospace; font-size:12pt"><span style="background-color:rgb(255,255,255)">@lnls.b</span>r</span></span></font><font color="#006FC9" size="2"><span style="font-size:11pt; color:rgb(0,0,0)"><br>
<a id="LPNoLP" href="http://www.lnls.cnpem.br"><span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)">www.lnls.cnpem.br</span></a><br>
<span style="font-family:Consolas,monospace; font-size:12pt; color:rgb(117,123,128)"></span></span></font></span></font></div>
</font></font></font><span style="color:rgb(117,123,128); font-family:Consolas,monospace; font-size:12pt">'''</span><br>
<p></p>
</div>
</div>
</div>
</body>
</html>