mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 21:04:47 +00:00
More work on signal: the C++ part is working
This commit is contained in:
parent
83d206ea39
commit
4575011293
15 changed files with 166 additions and 59 deletions
13
examples/cpptest/main.cpp
Normal file
13
examples/cpptest/main.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "hello.h"
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
static Hello component;
|
||||
|
||||
component._foobar.set_handler([](auto...){
|
||||
std::cout << "Hello from C++" << std::endl;
|
||||
});
|
||||
|
||||
sixtyfps::run(&component);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue