Hi,
On Tue, May 8, 2012 at 5:31 PM, Jason Dictos wrote:
> Good info, however I’ve confirmed that I’m not explicitly emitting that
> layoutChanged signal when refreshing the nodes.
>
Unless you did so already, I'd connect a dummy-object to all the signals a
model can emit to verify
which are bei
Please give me some suggestions I am stuck in this problem. I want to implement
a set of QTextEdit in 2 columns and multiple rows. Initially my sheet(QWIdget)
will be blank, There will be a button at the top when pressing this button, a
QTextEdit should be added on the sheet at row=0, column=0.
setQuitOnLastWindowClosed(true)
only sets flag which is checked when any QWidget closed
and closes application when you need the last one.
So, since I assume you do not have QWIdget instances anymore,
you need manually call exit when you need to exit:.
voidQCoreApplicationexit ( int returnCod
On 08/05/12 21:33, Rick Stockton wrote:
> I am delighted to advise this list that my Update to provide
> 'QKeySequence::FullScreen' has been integrated into the Staging Branch
> for Qt 5.0.
>
> As Oliver found and documented so clearly (thanks, Oliver!), Qt 5.0 will
> recognize both F11 (alone) and
I am delighted to advise this list that my Update to provide
'QKeySequence::FullScreen' has been integrated into the Staging Branch
for Qt 5.0.
As Oliver found and documented so clearly (thanks, Oliver!), Qt 5.0 will
recognize both F11 (alone) and another key sequence as Bindings for this
QKey
Good info, however I've confirmed that I'm not explicitly emitting that
layoutChanged signal when refreshing the nodes.
I am adding rows, or removing rows for sure however, hence the refresh.
So, is it just impossible to add items to an expanded tree's node, without it
collapsing then?
-Jason
On Tue, May 8, 2012 at 5:03 PM, Jason Dictos wrote:
> So I have this QTreeView class, which I populate the underlying model with
> things at various times. I am struggling with an issue though that whenever
> I update a particular QModelIndex, that level of nodes is collapsed by the
> view.
So I have this QTreeView class, which I populate the underlying model with
things at various times. I am struggling with an issue though that whenever I
update a particular QModelIndex, that level of nodes is collapsed by the view.
The net effect is whenever a user refreshes an expanded node, th
Use QtDesigner you will see what is done.
See also the documentation for QMainWindow::setCentralWidget().
On Tue, May 8, 2012 at 11:43 AM, Sujan Dasmahapatra wrote:
> //mainwindow.h
>
> QWidget *widget;
>
> QPushButton *button;
>
> QTextEdit *edit1;
>
> QFormLayout *formL;
>
it works but ... if i do that, when I close the qml view it no more
quit the application and stay as zombie ...
I have tryed various hack like :
QGuiApplication::setQuitOnLastWindowClosed(true); at start
just before opening QfileDialog I set
QGuiApplication::setQuitOnLastWindowClosed(false)
Hi,
i have a qtablewidget populated with qtablewidget items,
ho can i catch mousepressevent on qtablewidgetitem?
Thanks,
Riccardo
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
grid->addWidget(compass,0,0,1,2);
grid->addWidget(leftLabelArea,1,0);
grid->addWidget(rightLabelArea,1,1);
grid->setRowStretch(0,1);
grid->setRowStretch(1,0);
if you want the compass to always keep the same size so it does not get
distorted, you might try
grid->addWidget(compass,0,0,1,2,Qt::Align
Hi,
I think you should take a look at the stretch factor (mentioned in the
QBoxLayout doc) as well as the sizePolicy, and the various size properties for
your widget (minimumSize, sizeHint, etc...)
Hope this helps
Samuel
On 8 mai 2012, at 11:25, Christian Gagneraud wrote:
> Hi list,
>
> I'm
Hi list,
I'm trying to create a simple composite widget as following:
- Container is a QGroupBox
- Top widget is a compass (square shaped design based on the analog
clock example)
- Below the compass are 2 pairs of labels/value
I would like the compass to occupy as much space as possible and the
Den 07-05-2012 15:09, qtnext skrev:
> Hi,
>
> I have started a new desktop application trying to use only qml with
> Qt5 : I need to choose file. There is now no ready to use components to
> open, choose a file, so I have tryed to add widgets module in the pro
> file, and use Qfiledialog ... I ca
//mainwindow.h
QWidget *widget;
QPushButton *button;
QTextEdit *edit1;
QFormLayout *formL;
MainWindow::MainWindow(QWidget *parent):QMainWindow(parent)
{
setGeometry(0,0,800,600);
widget = new QWidget(this);
widget->resize(size());
button = new QPushButton("Click m
And also the doc about QMainWindow:
http://qt-project.org/doc/qt-4.8/qmainwindow.html#details
On 8 mai 2012, at 10:22, Diego Iastrubni wrote:
> Use layouts, not absolute positioning. Read the docs about it.
>
>
> On Tue, May 8, 2012 at 11:13 AM, Sujan Dasmahapatra
> wrote:
> Please check thi
Use layouts, not absolute positioning. Read the docs about it.
On Tue, May 8, 2012 at 11:13 AM, Sujan Dasmahapatra wrote:
> Please check this code snippet, with this when I resize the mainwindow,
> my textedit is not resizing. What could be the problem pls help.
>
> ** **
>
> //mainwindow.h
Please check this code snippet, with this when I resize the mainwindow,
my textedit is not resizing. What could be the problem pls help.
//mainwindow.h
QPushButton *button;
QTextEdit *edit;
QFormLayout *formL;
//mainwindow.cpp
MainWindow::MainWindow(QWidget *parent):QMainWindow(parent)
19 matches
Mail list logo