Hi,
To add to JvdGlind, toAscii and its fellow conversion function returns a temporary QByteArray so calling
@char *foo = myQString.toAscii().data();
doSomethingWithFoo(foo);@
Will lead to undefined behavior.
The correct way would be
@
QByteArray myAsciiByteArray = myQString.toAscii();
char *foo = myAsciiByteArray.data();
doSomethingWithFoo(foo);@
You should anyway try to create a minimal application. That way you can determine if it's a Qt bug or a PySide thing.
Also, another thing to try is a more recent version of Qt like 4.8.6 is around the corner.
Another question regarding the indentation : )
I have one child that has a QWidgets set for all the columns in a row (each row has it's own QWIdget)... It has some gradient in the background. And then the indentation is just a solid color depending on what row it gets to.. Is there a way that I can set QWidget to cover that indentation? (I tryed simpliest: QWidget.move(-30, 0) but that didn't work :) ) Do I have to make a Delegate or can I avoid that?
Oh, sorry, the wrong email AD ;(
Email yurenjimi@gmail.com
[quote author="wwolff" date="1390431009"]I try send it , but your e-mail is invalid.[/quote]
Then you should make a separate widget for each group, it will simplify the handling.
For the undo part, have a look at QUndoStack
For the layout part, it seems you will do it vertically, so you can use a QVBoxLayout
Hope it helps
You're welcome !
If this replies to your question, please, update the thread title prepending [solved] so other forum users may know a solution has been found :)
Very good suggestion, less dependencies is better.
QComboBox doesn't have a setData function, did you mean setItemData ? When using QComboBox you don't have to handle the item themselves only their content
I'm looking at C++ Reference, so I may be wrong about this but in Qt C++ addItem / setItemData declaration shows "QVariant". maybe you might want to use row index or "Item n" for the ItemData