EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: epicsqt first try
From: Andrew Rhyder <[email protected]>
To: "[email protected]" <[email protected]>
Cc: EPICS tech-talk <[email protected]>
Date: Sat, 26 Mar 2011 17:47:14 +1100
Yes, you're right Emmanuel, nothing more is required but the QCaLabel.
Glad you like the documentation, although I'm sure you will quickly discover it is way shorter than it should be. Or was that your tongue-in-cheek point!
Andrew
________________________________________
From: [email protected] [[email protected]]
Sent: Friday, 25 March 2011 12:21 PM
To: Andrew Rhyder
Cc: EPICS tech-talk
Subject: Re: epicsqt first try

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
<br>This message and any attachments may contain proprietary or confidential information. If you are not the intended recipient or you received the message in error, you must not use, copy or distribute the message. Please notify the sender immediately and destroy the original message. Thank you.

References:
epicsqt first try emmanuel_mayssat
RE: epicsqt first try Andrew Rhyder
Re: epicsqt first try emmanuel_mayssat

Navigate by Date:
Prev: Re: GPIB DCL Robert Emery
Next: asynPortDriver Question Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: epicsqt first try emmanuel_mayssat
Next: Modbus R2-2 available Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·