Hey guys,
I'm having a problem with adding the Qxt library to Qt Designer. The error it gives is:
Cannot load library C:/Qt/4.6.2/plugins/designer/QxtDesignerPlugins.dll; The specified module cannot be found.
Any ideas on what the problem is?
...
Hi,
I have created a dialog using qt designer. There is a QLineEdit object in the dialog with some default content. When dialog initializes focus goes to the QLineEdit, I want the default content to be auto selected so once user start writing previous content will be overwritten.
Thanks,
GG
[EDIT]
{ in constructor }
dialog->accept(); ...
I'm using the Qt Designer.
I want to create a QVBoxLayout which will automatically expand to fill the whole window.
The layout of the QVBoxLayout remains fixed.
How can I cause the QVBoxLayout to expand and fill the entire window through the designer?
...
I can add a player object to my UI layout in the MainWindow constructor, but how do I use the widget container as a placeholder so I set properties and layout for the VideoPlayer in QtDesigner?
...
I am designing a GUI interface in QT Designer. Part of this interface involves two custom widgets stacked on top of each other via a QStackedLayout. When certain actions are performed elsewhere in the GUI, I want the top stacked widget to slide upwards, revealing the widget beneath it and covering whatever happens to be above it.
I am c...
Hi,
I've got a Widget (QTabeleWidget, QLabels and some QButtons). It was build in Qt-Designer. And now I have to implement some things. For that I need the mousePressEvent.
Usually I would write a subclass and write something like this:
def mousePressEvent(self, event):
if event.button() == Qt.LeftButton:
print "left"...
I need my all controls to be right aligned. so when resizing they should move with the right upped corner of window instead of left upper.
In visual studio, I simply set the Anchor property of any control to right and up. but PyQt has no Anchor or Dock property. Setting layoutDirection to RightToLeft didn't help.
note: I'm trying to lea...
I'm trying to display a little square of solid color.
I've created a QGraphicsView widget myGraphicsView and call:
ui->myGraphicsView->setBackgroundBrush(QBrush(Qt::red, Qt::SolidPattern));
But it stays white. What am I doing wrong?
...
I've a PyQt4 Installed on Python 2.6. I wish to insert actions or widgets into a toolbar in QtDesigner instead of adding them in code, with addAction or addWidget (as simple as adding actions to a menu in design time).
...
Using the Qt Designer I've made a couple of QFrames in each other, each having a horizontal layout. Their stylesheet predicates that they should have no margin nor a padding. This means that in the Qt Designers view as well as in the final result, no space is seen between the QFrames.
Using drag-and-drop I can place widgets into the win...
Hi, i am making a PyQt application, and i want to make something like a Terminal Window, where the user can interact with a Telnet or ssh server.
My first idea was to have a Window with a black QPlainTextEdit and a scrollbar.
I am new to python-Qt world and would appreciate some guidance. Any ideas?
Thanks :-)
...
I'm having some questions about Qt's stylesheet functionality. It's really great, but it feels like the feature isn't around for too long yet, true? It's by far the easiest way to style my GUI though.
Is it possible to add color fading in the stylesheets? Whenever the mouse hovers over a certain widget, I don't want it abruptly changin...
Hello,
On a form designed with Qt Designer, I have two QGroupBoxes with a bunch of controls in each of them. Both group boxes have nearly the same contents (QLineEdits with associated labels).
What I want to do, however, is to align the controls together, as if they were part of the same grid layout. But since they are in separate cont...
Hello,
How can I edit my program to have a look like QtDemo ?
I am using Qt 4.7.
Thanks
...
Hi,
I try to hide all widgets in layout. But looks like findChildren doesn't
work for layout.
Here's my sample code:
QLayout * layout = widget -> findChild<QLayout *> (layoutName);
QList<QWidget *> list = layout -> findChildren<QWidget *> ();
cout << list.size() << endl;
size is 0, but inside this layout I have a fe...