Hi Gunnar,

You can always rebuild QtQuick Controls making sure you add CONFIG += 
no_desktop in the .pro file. The widgets dependency is automatic if widgets are 
present except on mobile platforms (which, paradoxically, exclude embedded).

Best regards,

Dr. Gabriel de Dietrich
Senior Software Developer
The Qt Company — www.qt.io


________________________________________
From: development-bounces+gabriel.dedietrich=theqtcompany....@qt-project.org 
<development-bounces+gabriel.dedietrich=theqtcompany....@qt-project.org> on 
behalf of Gunnar Roth <[email protected]>
Sent: Monday, December 15, 2014 10:07 AM
To: [email protected]
Subject: [Development] quickcontrols has now a hard dependancy on widgets.

Hi,
Recently i deteced that quickcontrols plugim has started to add a hard 
dependency on widgets  ( on wec2013 and win32 at least ).
dpends.exe is showing
??0QStyleHintReturnMask@@QAE@XZ
??0QStyleOption@@QAE@HH@Z
??0QStyleOptionButton@@QAE@XZ
??0QStyleOptionComboBox@@QAE@XZ
??0QStyleOptionFocusRect@@QAE@XZ
??0QStyleOptionFrame@@QAE@XZ
??0QStyleOptionGroupBox@@QAE@XZ
??0QStyleOptionHeader@@QAE@XZ
??0QStyleOptionMenuItem@@QAE@XZ
??0QStyleOptionProgressBar@@QAE@XZ
??0QStyleOptionSlider@@QAE@XZ
??0QStyleOptionSpinBox@@QAE@XZ
??0QStyleOptionTab@@QAE@XZ
??0QStyleOptionTabWidgetFrame@@QAE@XZ
??0QStyleOptionToolBar@@QAE@XZ
??0QStyleOptionToolButton@@QAE@XZ
??0QStyleOptionViewItem@@QAE@XZ
??1QStyleHintReturnMask@@QAE@XZ
??1QStyleOption@@QAE@XZ
??1QStyleOptionViewItem@@QAE@XZ
?font@QApplication@@SA?AVQFont@@XZ
?globalStrut@QApplication@@SA?AVQSize@@XZ
?hideText@QToolTip@@SAXXZ
?palette@QApplication@@SA?AVQPalette@@PBD@Z
?showText@QToolTip@@SAXABVQPoint@@ABVQString@@PAVQWidget@@@Z
?style@QApplication@@SAPAVQStyle@@XZ

as imported functions from Widgets library.

In contrast to this the quickcontrols dialog plugin has  only a soft dependency 
via qpa, because of the possibility to use the widgets dialogs as a fallback.
Ir is very surprising to have a dependency on widgets, which loads this huge 
dll on our wec2013 platform into memory ( for performance reasons paging of 
exe/dll is switched off) . I admit that this does only happen if you also build 
widgets library, but i usually build as much a i can on a platform, even if i 
don't use it yet.

With this patch i now disable that dependency.
--- a\qtquickcontrols\src\src.pro    2014-12-05 17:24:10.000000000 +0100
+++ b\qtquickcontrols\src\src.pro    2014-12-08 13:45:54.616785600 +0100
@@ -7,6 +7,6 @@
 SUBDIRS += layouts

 SUBDIRS += dialogs
 SUBDIRS += dialogs/Private

-qtHaveModule(quick):qtHaveModule(widgets): SUBDIRS += widgets
+#qtHaveModule(quick):qtHaveModule(widgets): SUBDIRS += widgets

I would really appreciate a configure option for this.

Regards,
Gunnar

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to