Advertisement
Lajamerr_Mittesdine

Solution

Jul 13th, 2018
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Current
  2. this->dropdownMenu_.move(this->dropdownButton_->mapToGlobal(QPoint(0, this->dropdownButton_->height())));
  3. this->dropdownMenu_.show();
  4.  
  5. //Potential solution #1 Synchronous
  6. //no need for .move() anymore
  7. this->dropdownMenu_.exec(QCursor::pos());
  8.  
  9. //Potential solution #2 Asynchronous
  10. //no need for .move() anymore
  11. this->dropdownMenu_.popup(QCursor::pos());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement