I started to write a small wrapper for Qt and FB. I've uploaded a very early version of the wrapper >>>here<<<. It's only a demo that shows what is possible and I will translate more and more classes and functions in the next months.
Here's an example:
Code: Select all
#inclib "QtWrapper"
#include once "QMainWindow.bi"
#include once "QApplication.bi"
#include once "QPushButton.bi"
#include once "QVBoxLayout.bi"
dim as QApplication app
dim as QMainWindow main = QMainWindow()
dim as QWidget widget = QWIdget()
dim as QPushButton button1 = QPushButton("Exit")
dim as QVBoxLayout vbox = QVBoxLayout(@widget)
vbox.addWidget(@button1)
main.setCentralWidget(@widget)
main.show()
QObject.connect(@button1,"clicked(bool)",@app,"quit()")
app.setStyle("Cleanlooks")
app.exec()
I solved also problems with the virtual functions of QWidget, you can call the original implementation with QWidget.callDefault and "overwite" the function with a callback system (QWidget.setCallback()).
The next step will be the implementation of Signals and Slots in UDTs. (connections from Qt classes to Qt classes work already).
Thank you for any feedback!