tdzl2003 / luaqt Goto Github PK
View Code? Open in Web Editor NEWLua(JIT) wrapper for QT
License: Other
Lua(JIT) wrapper for QT
License: Other
In test "loginwindow-ml", I set the "minimumSize" of "LoginWindow" widget of "loginwindow.ui" in QtDesigner. While I run the program, The console takes an error:
luajit: [string "--[[..."]:20: attempt to index global 'QSize' (a nil value)
stack traceback:
[string "--[[..."]:20: in function 'setupUi'
[string "require 'QtWidgets'..."]:16: in function 'func'
modules/luaqtml.lua:90: in function 'creator'
modules/LuaQtHelper.lua:301: in function 'new'
scripts/main.lua:10: in main chunk
[C]: at 0x004020e0
What do you think about this?
require("QtWidgets")
local ui_LoginWindow = loadstring(require("uic").run("loginwindow.ui"))()
-- @class LoginWindow
-- @extend QWidget
local LoginWindow = {}
-- @constructor __init__
-- @argument QWidget*
-- @end constructor
function LoginWindow:__init__(parent)
self.ui = ui_LoginWindow.setupUi(self)
self:connect(self.ui.btn_Login, "2clicked()", "1doLogin()")
end
-- @signal logined
-- @return void
-- @end signal
function LoginWindow:logined()
end
-- @slot doLogin
-- @return void
-- @end slot
function LoginWindow:doLogin()
self:logined()
end
-- @end class
return LoginWindow
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.