I know that I can use QDialog to create Window instead of WinApi. But I think this example is very easy, so I think there is another way...