freenode/#shirakumo - IRC Chatlog
Search
12:21:11
luis
Shinmera: is there a convenient way to toggle overrides dynamically with qtools/commonqt/smoke? It seems like it should be possible with smoke, but there isn't any convenient way to do it in commonqt.
12:22:36
Shinmera
you can just call STOP-OVERRIDING within an override, to exit it immediately. It'll still get called, just abort the callback.
12:24:03
luis
I'm (prematurely?) worried about overriding events like paint and mouse events for every widget only to qt:stop-overriding 99% of the time
12:30:36
luis
Shinmera: https://github.com/commonqt/commonqt/blob/master/commonqt.cpp#L151 <-- I guess I'd need to delete the index from the overridenMethods hashtable.
12:30:36
Colleen
github.com/commonqt/commonq... Website (HTML), Title: commonqt/commonqt.cpp at master · commonqt/commonqt · GitHub
12:32:45
Shinmera
I think you should be able to just reinitialize-instance the class you want to change overrides for and pass the new override list.
12:37:40
luis
Shinmera: ensure-qt-class-caches seems to skip inform-cpp-about-overrides on subsequent runs. (i.e. it seems to cache things :-))
12:41:48
luis
Shinmera: in any case, inform-cpp-about-overrides only adds pairs to the overridenMethods hashtable, it doesn't remove previous ones.
18:09:15
luis
Shinmera: have you ever used QObject::moveToThread(QThread *)? I'm getting a "No applicable method moveToThread found on #<QDialog 0x00158700> with arguments (#<QT::QTHREAD 11C020>)"
18:21:45
luis
A silly test case would be: (qt:with-main-window (dialog (#_new QDialog)) (#_moveToThread dialog (#_thread qt:*qapplication*)))
18:28:12
Shinmera
if you need to do multithreading you should use signals to communicate, as those are thread-safe.
18:28:51
luis
Shinmera: I don't really need to create new QThreads, but I'd like to invoke QObject::moveToThread()
18:29:40
luis
Well, I'm trying to have the Qt event loop in a separate thread and let objects be created in whichever thread.
18:30:52
luis
I suppose I could alternatively ensure Qt object instantiation takes place in the event loop thread.
18:34:00
Shinmera
I suppose as a Really Bad Hack you could use qtools fastcall mechanism to force the call if you have a thread object
18:36:09
Colleen
github.com/commonqt/commonq... Website (HTML), Title: commonqt/repl-integration.lisp at master · commonqt/commonqt · GitHub