hakaishi / nobleNote

Program to make and manage notes
Other
30 stars 4 forks source link

Async note loading #191

Closed nebomuk closed 9 years ago

hakaishi commented 9 years ago

You mean for startup or for loading in general?

nebomuk commented 9 years ago

When a note file is opened

hakaishi commented 9 years ago

We'd just have to use QtConcurrent at void MainWindow::openOneNote(QString path) and void MainWindow::openRecent() I think =D

nebomuk commented 9 years ago

OpenRecent should call openNote anyways shouldn't it?
You can try to wrap it in QtConcurrent::run but this will most likely crash because there's a lot of gui stuff you cannot call from another thread

nebomuk commented 9 years ago

the async loading should reduce the flicker that i noticed under qt 5 with an nvidia card. Under qt4 there doesn't seem to be any problems.