Skip to content

Qt6 Examples #223

Answered by rcalixte
pol-guarch asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I was able to piece together this example that shows the splash screen for three seconds before showing the next QWidget which is the QPushButton in this case but it could easily be a QMainWindow or whatever you want. You can customize the splash screen image further by modifying the QPixmap object. I modified the helloworld6 example here:

package main

import ( 
        "fmt"
        "os"

        qt "github.com/mappu/miqt/qt6"
)

func main() { 

        qt.NewQApplication(os.Args)

        pixmap := qt.NewQPixmap4("logo.png")
        defer pixmap.Delete()

        splash := qt.NewQSplashScreen4(pixmap, qt.WindowStaysOnTopHint)
        defer splash.Delete()

        // disable clo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pol-guarch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants