158 questions
0
votes
1
answer
62
views
Dynamically adding widgets to QScrollArea inside QMainWindow at runtime
I'm trying to populate a QScrollArea object within a MainWindow object at runtime when a menu item is selected. However, I can't seem to figure out how to do this. Here is a minimal example of how I ...
0
votes
0
answers
31
views
reset MainWindow layout Pyqt5 [duplicate]
I am creating a simple PyQt GUI that initially shows a login window. Upon successful login, the MainWindow is supposed to refresh and change the MainWindow layout.
The approach I used is creating two ...
0
votes
0
answers
108
views
Get MainWindow Instance WPF
I have some custom extensions, which when i double-click on it, it launch program and every time as i do it, it creates new mainwindow. So i want not create, but update the first mainwindow. I searced ...
0
votes
0
answers
168
views
Why is my PyQt6 QPushButton not clicking in my QTableWidget and QWidget on my MainWindow?
Need to understand the origin of the issue as to why my pyqt6 QPushButton does not seem to be clicking or functioning even though I have done everything right in my eyes. I have researched and read ...
-1
votes
2
answers
552
views
Change QMainWindow layout programmatically
I am using Qt Creator to build a main MainWindow and populate it with all my widgets. I do not set any MainWindow layout in this stage (like "Lay out in a Grid" or "Lay out Horizontally&...
0
votes
1
answer
391
views
Change Visibility of Main Window from a different window
Sorry for the stupid question but I can't get it to work.
I got a MainWindow that opens another window.
public static Window2 LoadWindow = new Window2();
public MainWindow()
{
...
1
vote
0
answers
115
views
menuBar not displayed in windows qt
I have mainwindow.ui where need to use menubar and toolbar on my Windows 10OS.So I made in GUI menubar an toolbar, but when program runs they not appear.
mainwindow.ui
running mainwindow
Code of ...
1
vote
1
answer
125
views
How to do in-window hint in GTK+
The Sound Recorder app of GNOME has this in-window hint at start-up. How do I do this? I was browsing through the source code and found that it is written either in Vala or Javascript (not sure). ...
-1
votes
1
answer
120
views
WPF - Unable to shutdown application after adding splash window to the project
I am unable to shutdown my WPF application on closing the main window. Just facing this issue after adding new window (splash screen) to my project.
Below is the newly added code in App.xaml.cs
...
0
votes
1
answer
952
views
why does super(MainWindow, self),__init__(*args, **kwargs) NameError: name '__init__' is not defined
from PyQt5.QtGui import *
from PyQt5.QtWidgets import*
from PyQt5.QtCore import *
import operator
from Calculator import Ui_MainWindow
# Calculator state.
READY = 0
INPUT = 1
class MainWindow(...
0
votes
1
answer
305
views
Generate QtLabel inside Class and call it in MainWindow
I'm pretty new to Qt and I came across a problem I don't find a fix for.
So my problem is as follows:
I try to generate a QtLabel inside a class and display it in my mainWindow.
class Hexagon
{
...
-1
votes
1
answer
47
views
The pointless question. It can be deleted
Here is the link to the original post: Animating a WPF window width and height. Thanks for the given example. The code works great. But only on the main window. If i create a child window. ChildWnd cw ...
0
votes
1
answer
827
views
How do you create a QPushButton in the MainWindow?
QPushButton* m_button = new QPushButton();
Whenever i try to create a QPushButton like this, it appears to be created in a new separate window. However, I want the Button to be created within the ...
0
votes
0
answers
43
views
After my login dialog window exits my app main window hangs
I am new to pyqt5 and i have been desperately trying to make a login window for my payroll windows application however when i put in the credentials whether they are right or wrong the main app hangs ...
0
votes
0
answers
705
views
Why only top border is visible when ToolWindow is used?
I created new .NET WPF desktop application using Visual Studio 2019. The default mainwindow looks like this:
What I want is to hide the icon, which I accomplished by setting next property to Window
...
1
vote
1
answer
354
views
How do I show Border Frame and Title Bar on MainWindow on Cross Compiled Application on an RPi3?
I am using QT Creator 4.5.2 based on 5.9.5 on Ubuntu 18 to build an application designed for a Raspberry Pi 3 running Stretch (cross compiled).
I can launch the application on the RPi3, but the ...
0
votes
1
answer
148
views
Update Combo Box contents with the updated dictionary contents that it is data binded to
I have a combo box who's display and value paths I have successfully bound to a dictionary.
The only problem is that the actual dictionary isn't populated by the XAML until after these boxes are ...
-2
votes
1
answer
41
views
Should these names coincide in WPF application project?
I would like to know if this names (StartupUri="MainWindow.xaml" and MainWindow.xaml) should coincide. For example, if I'm going to rename MainWindow.xaml to e.g. MsgBox.xaml.
Please look at pic and ...
1
vote
0
answers
333
views
C# process.mainwindowtitle showing process name instead
I am writing a C# application and before I exit, I need to close another console application based on its window title... this second application (staticEngineWriter) is a C program that uses ...
-1
votes
1
answer
274
views
Call mainwindows from UserControl
I have a Window(mainwindows.xaml) where there's a label.Now,i've created a UserControl(Just a basic button)..On Window_load,i'm adding the UserControl in a canvas(in mainwindow) using this :
Dim con ...
-1
votes
3
answers
2k
views
WPF MainWindow freezes even in Asynchronous state
What I'm trying to do is perform a heavy task triggered by a button event on the MainWindow, but still be able to drag the window freely. I've tried both the async/await pattern and creating new ...
1
vote
1
answer
71
views
How provide Grid instead of Links on ModernWindow of WPF
On ModernWindow I have something like this for tabs:
<mui:Link DisplayName="Steps" Source="/Views/StepsControl.xaml" />
How could I have something like this:
<mui:Link DisplayName="Steps" ...
0
votes
3
answers
2k
views
How to access MainWindow's variables from second Window
Is there another way to access MainWindow's public variables than :
MainWindow mainWindow = Application.Current.Windows.OfType<MainWindow>().FirstOrDefault();
mainWindow.variable....
this work ...
0
votes
1
answer
32
views
WPF - How to make user resizing reasonable?
2 simple question about resizing in WPF (images included):
1) When I make my mainwindow user-resizable it seems that if the user would want to reduce the size - the whole window with its' components ...
0
votes
0
answers
58
views
Can I resize QTWidgets when QTMainWindow grows without layout management?
I have searched on the internet for a long time but I couldn't find an answer to my question.
When resizing the main window of my application I want some of my widgets to grow.
A lot of answers I ...