SHOW:
|
|
- or go back to the newest paste.
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()); |