[Qt-creator] MakeStep

2023-08-11 Thread Knut Petter Svendsen via Qt-creator
Hi!

In my custom plugin, I've crafted a class, lets call it MyMakeStep which
inherits from ProjectExplorer::MakeStep. This class requires specific
settings from MySettings, a class that derives from Core::PagedSettings.
However, I'm encountering challenges when attempting to inject or retrieve
these settings within MyMakeStep. The construction of MakeStep instances
is managed by a factory which regrettably doesn't accept any arguments.
Currently, the only workaround I've discovered involves transforming
MySettings into a singleton, a solution that leaves me uneasy. Could an
alternative approach be employed to address this situation without
resorting to a singleton?

Knut

In my custom plugin, I've crafted a class called MyMakeStep which inherits from ProjectExplorer::MakeStep. This class requires specific settings from MySettings, a class that derives from Core::PagedSettings. However, I'm encountering challenges when attempting to inject or retrieve these settings within MyMakeStep. The construction of MakeStep instances is managed by a factory which regrettably doesn't accept any arguments. Currently, the only workaround I've discovered involves transforming MySettings into a singleton, a solution that leaves me uneasy. Could an alternative approach be employed to address this situation without resorting to a singleton?-- 
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] MakeStep

2023-08-11 Thread klaus . fuerth
Vielen Dank für Ihre Email. Ich bin derzeit nicht erreichbar.

Sie können mich ab Dienstag, den 22.08.2023 wieder erreichen.

Ihre Anfrage wird bis dahin nicht bearbeitet. 

Freundliche Grüße
Dipl.-Ing. Klaus Fürth
F \ Software Embedded Systems \ Regelungstechnik
Tel: +49 781 97 05 099

Elektronische Systeme und Softwaretechnik
Gesellschaft für Erstellung, Layout und Konzeption elektronischer Systeme mbH
Gladbacher Str. 232
D - 47805 Krefeld
Tel: +49 2151 - 788 86 0
Fax: +49 2151 - 788 86 02
Web: www.elk.de

Geschäftsführer: Axel Stamm | Amtsgericht Krefeld HRB 5685
USt.-ID-Nr.: DE 1733 966 45 | WEEE-Reg.-Nr.: DE83739485 



-- 
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator