On 09:31 Tue 22 Mar , Andrew Rhyder wrote:
> There is not much wrong with your code below, but I believe you always need to create widgets like QLabels (our EPICS flavor or otherwise) within a main window widget.
No need of main window
or layout
or "how to use Qt" book. ;-)
> Also, the CA connection is not established automatically, you have to call the 'activate()' method once the widget is created.
Ok, that was the missing part
#include <QApplication>
#include <QCaLabel.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QCaLabel label("DMC2183:1:DscrptnSI");
label.activate();
label.show();
return a.exec();
}
> Calling 'activate()' is a minor overhead that I would like to avoid for simple widgets that could otherwise just 'go' but allows for widgets that take multiple PVs and then require macro substitution to be applied to those PVs.
I love the ASgui utility
The documentation is quite good to get you started (once you find and read it ;)
I would love to see more advanced widgets.
Overall this ca_framework is...
... awesome!
--
Emmanuel
- Replies:
- RE: epicsqt first try Andrew Rhyder
- References:
- epicsqt first try emmanuel_mayssat
- RE: epicsqt first try Andrew Rhyder
- Navigate by Date:
- Prev:
PyEpics 3.1.0 Matt Newville
- Next:
GPIB DCL Robert Emery
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: epicsqt first try Andrew Rhyder
- Next:
RE: epicsqt first try Andrew Rhyder
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|