Dynamically creating window
-
Hi all.
In main window after clicking "graph" button, one window(like dialog) dynamically to be created and it will come like a popup, in that i have to create two splitter windows. In each splitter window some waveforms(like sine,square) has to be drawn.How can i do this in qt 5.5? please tell me the solution
-
Hi all.
In main window after clicking "graph" button, one window(like dialog) dynamically to be created and it will come like a popup, in that i have to create two splitter windows. In each splitter window some waveforms(like sine,square) has to be drawn.How can i do this in qt 5.5? please tell me the solution
-
Thanks jsulm.
But How to create a splitter widget in a dialog?
-
Thanks jsulm.
But How to create a splitter widget in a dialog?
@Mylavarapu.Manikanta Subclass QDialog and implement what ever you need there.
There is no difference in creating a splitter in a dialog compared to a widget. See http://doc.qt.io/qt-5/qsplitter.html -
@Mylavarapu.Manikanta Subclass QDialog and implement what ever you need there.
There is no difference in creating a splitter in a dialog compared to a widget. See http://doc.qt.io/qt-5/qsplitter.html@jsulm said in Dynamically creating window:
Subclass QDialog
You dont even have to do that:
QDialog dialog; QVBoxLayout* dialogLay = new QVBoxLayout(&dialog); QDialogButtonBox* diagButton =new QDialogButtonBox(QDialogButtonBox::Ok,&dialog); QSplitter* splitter = new QSplitter(Qt::Horizontal,&dialog); splitter->addWidget(new QLabel("I'm a label",&dialog)); splitter->addWidget(new QLabel("I'm a label too",&dialog)); dialogLay->addWidget(splitter); dialogLay->addWidget(diagButton); dialog.exec();
P.S.
If you want to be that guy you should avoid allocatingQDialog
on the stack like I did, see https://blogs.kde.org/2009/03/26/how-crash-almost-every-qtkde-application-and-how-fix-it-0 -
@jsulm said in Dynamically creating window:
Subclass QDialog
You dont even have to do that:
QDialog dialog; QVBoxLayout* dialogLay = new QVBoxLayout(&dialog); QDialogButtonBox* diagButton =new QDialogButtonBox(QDialogButtonBox::Ok,&dialog); QSplitter* splitter = new QSplitter(Qt::Horizontal,&dialog); splitter->addWidget(new QLabel("I'm a label",&dialog)); splitter->addWidget(new QLabel("I'm a label too",&dialog)); dialogLay->addWidget(splitter); dialogLay->addWidget(diagButton); dialog.exec();
P.S.
If you want to be that guy you should avoid allocatingQDialog
on the stack like I did, see https://blogs.kde.org/2009/03/26/how-crash-almost-every-qtkde-application-and-how-fix-it-0Thank you VRonin.
Can you tell me how can i plot graphs in qt 5.5.
Can i use QWT or some thing else?
Please tell me -
Thank you VRonin.
Can you tell me how can i plot graphs in qt 5.5.
Can i use QWT or some thing else?
Please tell me@Mylavarapu.Manikanta What about Qt Charts?
-
Thank you VRonin.
Can you tell me how can i plot graphs in qt 5.5.
Can i use QWT or some thing else?
Please tell me -
Thank you VRonin.
I installed QWT4.2 for QT 5.5 in windows os.
My doubt is how can i add QWT functions in my qt project. -
Thank you VRonin.
I installed QWT4.2 for QT 5.5 in windows os.
My doubt is how can i add QWT functions in my qt project.@Mylavarapu.Manikanta I googled for "qwt example" and found this: https://github.com/berndporr/qwt-example