[Interest] QClipboard - wasm

2021-05-06 Thread Nicholas Yue
Hi, I have build a Qt app on Ubuntu which I am able to set the clipboard text qclip->setText(validate_commit_message_plaintext); I then proceeded to build a WASM equivalent but found that the clipboard does not get the setText() update. I had a read of the article

[Interest] QPlainTextEdit - word wrap column setting ?

2021-05-06 Thread Nicholas Yue
Hi, Is there a way to set the maximum allowable columns e.g. set to 80, and when the user try to type pass that column, the word is automatically wrapped to the next line to allow the user to continue ? Cheers -- Nicholas Yue Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5 Custom Dev -

Re: [Interest] QML Singleton and QTimer?

2021-05-06 Thread Jérôme Godbout
You can check the thread affinity of an object and the current thread that will display the problem you encounter. Use a queued signal into the QTimer thread to sent the start (it will be delayed until the thread process the event, hopefully you do no need precision there). Jérôme Godbout, B.

[Interest] QML Singleton and QTimer?

2021-05-06 Thread Jason H
I'm trying to have a simple singleton class, but it doesn't appear that I can use timers? HardwareInterface::HardwareInterface(QObject *parent) : QObject(parent) { m_timer = new QTimer(this); connect(m_timer, ::timeout, this, [=](){ qDebug() << Q_FUNC_INFO;