[問題] qt 無邊框視窗移動lag問題

看板C_and_CPP作者 (chec)時間8年前 (2017/05/13 09:37), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(Platform): (Ex: Win10, Linux, ...) win7 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) vs2015 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) qt5.8 問題(Question): 目前寫的程式要隱藏邊框 又要讓user移動視窗 但目前的寫法會讓視窗在移動的時候頓的很有感覺 下面是我的測試專案 https://drive.google.com/file/d/0B9wZP_c89VEfUzk3LU9XaG9pYW8/view void dropTest::mouseMoveEvent(QMouseEvent *event) { if (event->y() < 180) move(event->pos() - alertView_m_point + pos()); } void dropTest::mousePressEvent(QMouseEvent *event) { alertView_m_point = event->pos(); } 想請問有沒有更好的寫法呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.226.134.66 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1494639421.A.D0F.html
文章代碼(AID): #1P5cCzqF (C_and_CPP)