Bugzilla – Attachment 183971 Details for
Bug 152205
Wayland does not allow switching between multiples LibreOffice windows from the Window menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Small Qt sample program to reproduce similar behavior
main.cpp (text/x-c++src), 726 bytes, created by
Michael Weghorn
on 2022-12-03 08:24:10 UTC
(
hide
)
Description:
Small Qt sample program to reproduce similar behavior
Filename:
MIME Type:
Creator:
Michael Weghorn
Created:
2022-12-03 08:24:10 UTC
Size:
726 bytes
patch
obsolete
>#include <QApplication> >#include <QPushButton> >#include <QMainWindow> > >class MyButton : public QPushButton >{ >public: > MyButton(QMainWindow* win, QWidget* parent) > :QPushButton(parent), > window(win) > { > connect(this, &MyButton::pressed, this, &MyButton::raiseWindow); > } > > void raiseWindow() { > window->activateWindow(); > window->raise(); > } > >private: > QMainWindow* window; >}; > > >int main(int argc, char *argv[]) >{ > QApplication a(argc, argv); > QMainWindow w; > w.setWindowTitle("one"); > w.show(); > > QMainWindow w2(&w); > w2.setWindowTitle("two"); > MyButton button(&w, &w2); > button.setText("Raise other window"); > w2.show(); > > return a.exec(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 152205
:
183775
| 183971