How to remove QWidgets from QSplitter
In my app have a window splitted by a QSplitter, and I need to remove an widget. How can I do that? I can't find useful methods ...
In my app have a window splitted by a QSplitter, and I need to remove an widget. How can I do that? I can't find useful methods ...
Hello, i'm trying to make 2 windows. 2nd should be called in 1st. I don't connect them child->parent. But when i called 2nd window and closed it 1st window closed too. What should i do? Both windows are inhereted from QWidget. C++ and Qt Sorry for my poor describe. I have a main window. Class inherited from QMainWindow. That i created...
Anyone have any idea how to grab text from a QWidget window in a Windows application? This is what it looks like when I look at it using Winspector: http://www.tightpoker.com/images/ftplobby.jpg I would have posted that as an image but apparently new users aren't allowed to use image tags... It can't find any sub classes (ie, for the...
Hey, I'm grabbing a window handle with the following code: HWND hwnd = FindWindow(L"QWidget", NULL); and it returns a HWND to a QWidget (I checked with Spy++, the handles match). But after this, if I try the following: QWidget* widget = QWidget::find(hwnd); or QWidget* widget = QWidget::find((WId)hwnd); widget is always 0. Does ...
Hey, I have a Qt Dll wich I inject into a third-party Application using windows detours library: if(!DetourCreateProcessWithDll( Path, NULL, NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE | CREATE_SUSPENDED, NULL, NULL, &si, &pi, "C:\\Program Files\\Microsoft Research\\Detour...
Hi there. I want to create a Settings-Widget, where I can choose a Date. Because it isn't nice to create 3 QLineEdits to call the QDate-Constructor with QDate(int year, int month, int day), I thought it would be better, if you can push a "show calendar"-Button for example, where you can choose the date. But I don't want to show this cal...
I am developing an appliation in which I want to continuously receive images from remote host and display them on my screen. for this I am following the given strategy 1) I have a main QWidget object which contains the QImage on it (works fine) 2) Images received from remote host are painted on QImage object, this work is done in a worke...
I am using Qt designer and I know how to use a QVBoxLayout and QGroupBox but it seems there is no such thing as a QGroupVBoxLayout. So I have to put a QVBoxLayout inside of a QGroupBox but if I modify the dimensions of one I have to do the same to the other. Is there a way to make them change dimensions together directly from QT design...
Hi, My main application object is a QObject, that juggles a QSystemTrayIcon, a QDialog, a QWindow and a few other components. The app mostly sits in the tray, with some options dialogs etc etc. Now, I'd like to use QMetaObject::connectSlotsByName() to connect signals from these objects to slots in the main object. It's 10-15 of them, s...
I have a Main window build with Qt Designer and I also have a widget built with Qt designer (both in a separate ui file). How can I instantiate my widget into my mainwindow at runtime? ...
For those of you who haven't been reading my Qt questoins, I am learning Qt for a project. I have only limited experience with GUI design at all, and not in Qt. I've got a horizontal layout that I want to populate with some buttons. I can feed these buttons in just fine, but my formerly-square buttons are stretched horizontally to take ...
I need to make the tabs that I have oriented at the bottom of my QTabWidget larger. We'll be using a touch-screen, so the default sizes are a little too small. I see no easy way to do this (currently seeing no good way to even do it at all. The only methods pertaining to the QTabBar that I see in QTabWidget are protected, and I don't se...
I'd like to know what happens exactly when I call a QWidget's update() method. Here is the documentation: http://doc.trolltech.com/4.5/qwidget.html#update This function does not cause an immediate repaint; instead it schedules a paint event for processing when Qt returns to the main event loop. This permits Qt to optimize fo...
Hi I've this hort program in Python ad Qt4 #!/usr/bin/python # -*- coding: utf-8 -*- import sys from PyQt4 import QtGui from PyQt4 import QtCore color = QtGui.QColor(99, 0, 0) class colorButton(QtGui.QWidget): def __init__(self, args): QtGui.QWidget.__init__(self,args) self.setGeometry(150, 22, 50, 50) se...
Hi, I'm trying to implement a show/hide widget animation. The widget is a QDockWidget and therefore is inside the QMainWindowLayout. Using QPropertyAnimation doens't seem to work, I got something looking like that : m_listViewDock->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); QPropertyAnimation* animation = new QProper...
I would like to know what happens when I call QWidget-close() I called it after a setup function I coded and this disabled some of my slots to get called. before(creates odd behavior): pGrpCfg->setupGrpConfig(); pGrpCfg->close(); pGrpCfg->show(); after(ok): pGrpCfg->close(); ...
I have the situation in the following image: How would I go about resizing the widget when the retry child is hidden so that it looks as in the first image? The main layout is a QVBoxLayout, the retry child is a widget with a QVBoxLayout as well. I've tried the following: update() updateGeometry() setGeometry(childrenRect()) layout...
Let's consider we have QWidget that contains QTableWidget (only). So we want to resize the table by resizing the widget, and we dont want to have an indet between the QWidget border and cells of the table. What kind of property is making posible for QTableWidget to be aligned with the borders of it parent widget? Thanks. ...
Consider there is a QTablWidget and a QTextEdit. Both of them are in a horisontal QSplitte. Let the QTable widget has 2 columns. The problem is to resize the table columns' width as you do resize operation by moving the splitter with mouse. Are there any options to may colums to be resized synchornosly with the table? Thanks. ...
Can I use Qt stylesheets with a derived widget? I'd like to be able to define some custom properties on the widget (like various colors) and be able to define their value in a stylesheet. Is this possible? ...