mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
30 lines
401 B
Go
30 lines
401 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/mappu/miqt/qt"
|
|
"github.com/mappu/miqt/qt/printsupport"
|
|
)
|
|
|
|
func main() {
|
|
|
|
qt.NewQApplication(os.Args)
|
|
|
|
btn := qt.NewQPushButton3("QPrintSupport sample")
|
|
btn.SetFixedWidth(320)
|
|
|
|
btn.OnPressed(func() {
|
|
|
|
dlg := printsupport.NewQPrintDialog3()
|
|
dlg.OnFinished(func(int) {
|
|
dlg.DeleteLater()
|
|
})
|
|
dlg.Show()
|
|
})
|
|
|
|
btn.Show()
|
|
|
|
qt.QApplication_Exec()
|
|
}
|