Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGridLayout should implement QLayoutInterface #36

Open
RIscRIpt opened this issue Sep 12, 2016 · 0 comments
Open

QGridLayout should implement QLayoutInterface #36

RIscRIpt opened this issue Sep 12, 2016 · 0 comments

Comments

@RIscRIpt
Copy link

RIscRIpt commented Sep 12, 2016

Code

    mainLayout := ui.NewGridLayout()
    mainWidget := ui.NewWidget()
    mainWidget.SetParent(w)
    mainWidget.SetLayout(mainLayout)
    w.SetCentralWidget(mainWidget)

w is a struct similar to MainWindow from the example.

Error

    *ui.QGridLayout does not implement ui.QLayoutInterface (wrong type for AddItem method)
        have AddItem(*ui.QLayoutItem, int32, int32, int32, int32, ui.Qt_AlignmentFlag)
        want AddItem(*ui.QLayoutItem)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant