Can I change the width of the widgets in the dialog box? - pyqt5

I would like to be able to change the mutual width of the widgets in the dialog box while the application is running.
How can I do this?
Is this even possible?

Related

Qt5 application and window icon

In my Qt5 app, I wanted to display a tiny icon in the title bar. I used
setWindowIcon(QIcon(":/icons/Mylogo.png"));
To my surprise, the icon appears (on my Ubuntu) on the sidebar, along with the other active tasks, but not in the title of the window. With the messages from my app, I also reveive
QPixmap::scaled: Pixmap is a null pixmap
that may be the reason why I do not have the icon. Do I make something wrong, or do need to do something extra? (i.e. the pixmap exists, found, and used on one purpose, I guess)
No minimum example and no info about window manager.. my advice is to look into platform notes for Setting the Application Icon
Your icon may be under control of e.g. KDE/GNOME theme.

Scroll bars for Excel CustomTaskPane developed using VSTO

I have an add-in, developed using VSTO, that displays a custom task pane in Excel. This custom task pane holds a user control containing tree-view and other controls. I enabled AutoScroll for the user control and can see the traditional windows scroll bar when ever i re-size the control. However, i want the scroll bar to be similar to the scroll bars that exist in Thesaurus CTP in Excel 2013,when the CTP is in floating position and re-sized to smallest size, (i cant post images as i have reputation below 10). can any one provide pointers for this?
Also is there any way to restrict the minimum size of CustomTaskPane ?
Hello Guruteja,
You can handle the Resize event of the Control class to control the size of your form and set the min size programmatically.
It looks like you need to develop a custom control to imitate the built-in one. Or try searching for any third-party Windows Forms controls.

Change Foreground of ReadOnly TextBox

In my Windows Phone App I want to have a TextBox which must be readOnly, but this makes its Foreground color look grayish, I want the Foreground color to be black, Is that possible?
Or how else can I have a textblock with black font, but not editable by the user?
You can change the Style of your TextBox for the disabled state.
To achieve this more easily, you can open your .xaml document in Expression Blend, Right Click in your TextBox -> Edit Template... -> Edit a Copy.
Then you choose the name you want for your Style.
After that search for the States Tab, and click it. After that choose the disabled state.
Then you can edit the TextBox to be whatever you like for the disabled state.
Also you can just set TextBox Style to null, and set Foreground as usual.

disabling Windows phone map control

My quesiton is: i have a windows phone 8 app - it has a Map Control on a page that shows the user's position.
We want to allow the user to disable the map control so it looks greyed out and disbaled and doesnt update (to save bandwith etc)
What would be the best way of doing this?
I would simply draw a control with semitransparent background on top of the map. thus all touch events would be stuck in the control, but the map would be visible under it still.

giving effects to buttons in vb.net

Image shows the buttons on my UI in vb.net
All these buttons are having background images. Now what i want is these buttons be shown as inactive when actions corresponding to them are not available so I am making them cmd.enable = false but still on UI there is no visual effect of this disabling them on these buttons. They keep looking same as in enabled mode. So how to give effect of disabled state to these buttons.
In the same way i want effect to be visible when mouse is hovered over these buttons and buttons are clicked
They don't look like buttons at all, it looks like a row of images. Use a real Button or a ToolStrip with ToolStripButtons, set their Image property. When you set their Enabled property to false then they automatically remove all color from the image, making it look disabled.