[GH-ISSUE #161] How to use this via PowerShell #100

Closed
opened 2026-05-05 11:04:43 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @ALIENQuake on GitHub (Aug 22, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/161

Hello,

First, let me show you an example of how PowerShell can call Windows Forms:

image

Could I load QT dll like the example above and use Powershell instead of c# to build GUI/app logic etc?

All I need is a POC of one simple grid with a button.

Originally created by @ALIENQuake on GitHub (Aug 22, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/161 Hello, First, let me show you an example of how PowerShell can call Windows Forms: ![image](https://user-images.githubusercontent.com/365255/63501624-3f8ba680-c4cc-11e9-8053-b2d369c8e633.png) Could I load QT dll like the example above and use Powershell instead of c# to build GUI/app logic etc? All I need is a POC of one simple grid with a button.
Author
Owner

@ALIENQuake commented on GitHub (Oct 8, 2019):

@pauldotknopf Well, don't bother. Even if you could provide answer, the application which is 'initialized' from Powershell will crash on Mac because the entire UI main loop has to run on the main thread while Powershell execute all scripts at the extra thread. More info: https://github.com/ironmansoftware/psavalonia/issues/1

<!-- gh-comment-id:539537432 --> @ALIENQuake commented on GitHub (Oct 8, 2019): @pauldotknopf Well, don't bother. Even if you could provide answer, the application which is 'initialized' from Powershell will crash on Mac because the entire UI main loop has to run on the main thread while Powershell execute all scripts at the extra thread. More info: https://github.com/ironmansoftware/psavalonia/issues/1
Author
Owner

@ALIENQuake commented on GitHub (Mar 29, 2020):

Apparently, the issue I mentioned can be fixed. @pauldotknopf Any chance for investigation?

<!-- gh-comment-id:605683599 --> @ALIENQuake commented on GitHub (Mar 29, 2020): Apparently, the issue I mentioned can be fixed. @pauldotknopf Any chance for investigation?
Author
Owner

@vadi2 commented on GitHub (Mar 29, 2020):

Why not build with C#?

<!-- gh-comment-id:605692030 --> @vadi2 commented on GitHub (Mar 29, 2020): Why not build with C#?
Author
Owner

@ALIENQuake commented on GitHub (Mar 30, 2020):

@vadi2 Well, Powershell has huge benefits over c# when it comes to speed and flexibility of the development of the simple-to-medium GUI apps. The most important one is time gain and it is the most valuable resource in the universe. But as with every tech, you have to do it in order to see it.

<!-- gh-comment-id:605860314 --> @ALIENQuake commented on GitHub (Mar 30, 2020): @vadi2 Well, Powershell has huge benefits over c# when it comes to speed and flexibility of the development of the simple-to-medium GUI apps. The most important one is time gain and it is the most valuable resource in the universe. But as with every tech, you have to do it in order to see it.
Author
Owner

@RokeJulianLockhart commented on GitHub (Jun 12, 2022):

I have noticed that this was considered to be complete. Does that mean that QMLNet supports PowerShell? I want a way to create a Qt app with PowerShell.

<!-- gh-comment-id:1153316925 --> @RokeJulianLockhart commented on GitHub (Jun 12, 2022): I have noticed that this was considered to be complete. Does that mean that QMLNet supports PowerShell? I want a way to create a Qt app with PowerShell.
Author
Owner

@RokeJulianLockhart commented on GitHub (Apr 21, 2023):

@ALIENQuake, additionally, https://github.com/qmlnet/qmlnet/issues/161#issuecomment-539537432 solely refers to macOS. If it's solely a problem with macOS, could support be provided by this library for Windows and Linux? We can always report it to the Apple developers and wait until it and/or https://github.com/ironmansoftware/psavalonia/issues/1 has been remediated.

<!-- gh-comment-id:1518342432 --> @RokeJulianLockhart commented on GitHub (Apr 21, 2023): @ALIENQuake, additionally, https://github.com/qmlnet/qmlnet/issues/161#issuecomment-539537432 solely refers to macOS. If it's solely a problem with macOS, could support be provided by this library for Windows and Linux? We can always report it to the Apple developers and wait until it and/or https://github.com/ironmansoftware/psavalonia/issues/1 has been remediated.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#100
No description provided.