Re: PCP Updates: RHBZ 1348349: pmchart(1): Table of metrics, instances and values

"Dave Brolley" <[email protected]>
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
On 10/07/2016 03:06 AM, Nathan Scott wrote:
> Hi Dave,
>
> ----- Original Message -----
>> This is my first Qt creation using the qt designer tool. A review of all
>> aspects is definitely warranted.
>>
>
> - should be using a QDialog here rather than a new QMainWindow I think
> (allows dialog-OK button, which we also need here) - we don't need the
> menu bar, status bar, etc of a QMainWindow in a QDialog;
I integrated this change however, once nice thing about it being a Main 
Window was that you could move it aside and it would stay open and 
update itself as you clicked around the chart. It also got its own 
window controls, so you didn't need the OK button. The QDialog 
implementation seems to open this window "on top" of the chart window 
(sorry, there's probably a better technical term) and you can't move it 
aside or click on the chart again until you close it. I can't seem to 
find a setting to make the dialog independent of the chart window. Do 
you know if there is one?
>
> - (re-)sizing of dialogs I always find tricky, and when I resize this
> one, everything stays "static" - ideally the widgets would all resize
> with the dialog window.  Have a look at the way saveviewdialog.ui does
> this, e.g. when clicking+dragging on the window-manager-window see how
> everything reshapes.
In order to resize, you need a main layout. I added that and restored 
thge QTableWidget setting to stretch the chart as I described before 
(right-most column and bottom-most row get stretched).

Attached is the updated .ui file. Give it a try and let me know what you 
think.

Dave


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#14502): https://groups.io/g/pcp/message/14502
View All Messages In Topic (3): https://groups.io/g/pcp/topic/2881991
Mute This Topic: https://groups.io/mt/2881991?uid=174580
New Topic: https://groups.io/g/pcp/post

Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580

Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]

Terms of Service: https://groups.io/static/tos

Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-
metricdetails.ui (application/x-designer, 2.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.