<?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[How to load customWidget using QUiLoader]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've created a custom widget and its designer plugin. I've copied the customwidget dll  into the "plugins\designer" folder. i was able to see and i can add it into the ui file via designer,but when i tried to load the ui file using QuiLoader to load the ui file then i've got the follwoing error "QFormBuilder was unable to create custom widget of the class, defaulting to QWidget." and i see no control in loaded Ui.<br />
I've also observed that my custom widget is not listed in the QUiLoader's available widgets.<br />
How can i register my custom widget so the QUiloader detects it?</p>
<p dir="auto">Thanks,<br />
RamSailesh</p>
]]></description><link>https://forum.qt.io/topic/34698/how-to-load-customwidget-using-quiloader</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 04:38:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/34698.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Nov 2013 12:48:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to load customWidget using QUiLoader on Mon, 15 Jun 2015 08:22:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/graphicsrat">@<bdi>graphicsRat</bdi></a><br />
Yes i was able to load custom widgets through QUiLoader.<br />
I've added the path of the  customWidget binary to the loader's plugin path</p>
<p dir="auto">QWidget * MainWindow::loadUiFile(const QString filename)<br />
{<br />
QUiLoader loader;<br />
loader.addPluginPath(qApp-&gt;applicationDirPath());<br />
QFile file(filename);<br />
file.open(QFile::ReadOnly);<br />
QWidget* widget = (QWidget*)loader.load(&amp;file);<br />
file.close();<br />
return widget;<br />
}</p>
]]></description><link>https://forum.qt.io/post/278101</link><guid isPermaLink="true">https://forum.qt.io/post/278101</guid><dc:creator><![CDATA[ramsailesh]]></dc:creator><pubDate>Mon, 15 Jun 2015 08:22:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to load customWidget using QUiLoader on Thu, 21 May 2015 11:20:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramsailesh">@<bdi>ramsailesh</bdi></a> Did you find the solution to this problem? I too am trying to do the same thing. Widget shows up in designer but QUiLoader will not instantiate it.</p>
]]></description><link>https://forum.qt.io/post/274895</link><guid isPermaLink="true">https://forum.qt.io/post/274895</guid><dc:creator><![CDATA[graphicsRat]]></dc:creator><pubDate>Thu, 21 May 2015 11:20:53 GMT</pubDate></item></channel></rss>