Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How would I launch QMessageBox? I want it set up so that when I click a button, it pops up.
I have the following code, but it doesn't seem to launch it.
oops wait a sec. I restarted Qt and its working. weird.
For small tasks I usually use the static methods:
- warning... etc.
Im trying to make a window that contains icons of various web apps. Kind of an app drawer builtin to the browser. Ive been trying to use messagebox for this. Is this possible?
It is possible indeed, but I would not think that QMessageBox is a good candidate for this. Plain QWidget, graphicsview or QML would fit better.
Ok, how would I do a Plain QWidget?
I would recommend grabbing a book on Qt t get the idea. Explaining everything here will be tedious.
I don't know exactly what and how you want to achieve. For the description given above, I would go for this:
Create a new QWidget-based UI (in Qt Creator that is "Create new designer class" IIRC)
Add QLabels containing your web app icons and text
Lay out the labels on the widget in a grid layout
I guess I haven't explained my goal really. Essentially, I am trying to make a standalone application that serves as an 'app drawer' for web apps. While online in a browser, you can choose to 'download' apps from a web app repository website. After 'downloading' them, the icon of the apps appear in my application and can be clicked to launch. My app serves as a way to launch the apps quickly and without mucking around in a browser. Its a bit like the 'app drawer' in Chrome OS.
The scenario from my last post will still work in that case. The real problem here, of course, will be integrating this with browsers.
Would it be possible to put a webview in a messagebox and than code the rest on the web?