
I have the following code that tries to resize window after a click. But
nothing happens. If I use a builtin slot that does not need a function, such
as "close", "quit" it works, however for any other slot it seems my function
is ignored. Which slot/signal should I use and how?
module Main where
import Qtc.Classes.Qccs
import Qtc.Classes.Gui
import Qtc.Gui.Base
import Qtc.Gui.QApplication
import Qtc.Gui.QPushButton
import Qtc.Core.QFile
import Qtc.Tools.QUiLoader
import Qtc.Enums.Core.QIODevice
import Qtc.Core.Base
import Qtc.ClassTypes.Gui
import Qtc.Gui.QAbstractButton
main = do
app <- qApplication ()
loader <- qUiLoader ()
uiFile <- qFile "slide.ui"
open uiFile fReadOnly
ui <- load loader uiFile
close uiFile ()
add <- findChild ui ("
participants (1)
-
c8h10n4o2