www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - QtE5: How use QUiLoader for load .ui in Dlang code?

I Python I use this code to import "untitled.ui" file. But I 
don't know how do it in Dlang:

import sys
from PySide2.QtUiTools import QUiLoader
from PySide2.QtWidgets import QApplication
from PySide2.QtCore import QFile

if __name__ == "__main__":
     app = QApplication(sys.argv)

     ui_file = QFile("untitled.ui")
     ui_file.open(QFile.ReadOnly)

     loader = QUiLoader()
     window = loader.load(ui_file)
     ui_file.close()
     window.show()

     sys.exit(app.exec_())
Nov 15