Thanks but iI'm not sure how to do it.
I try to do this also on row change
@ connect(ui->testTable, SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
this, SLOT(selectionChanged(QModelIndex, QModelIndex)));
@
But nothing happens
You're speaking of charactares, which makes me guess that you're on the wrong concept.
You must not print arbitrary binary data with printf() or qDebug()! As cincirin already mentioned, this stops at the first null-byte (0x00) regardless how big your data is.
You must check the byte array's size with x.size().
You can use "Qt Designer":http://developer.qt.nokia.com/doc/qt-4.7/designer-manual.html to design your user interface. The docs show you how to integrate the UI in your C++ class.
Addition:
Just tried to add a Layout to the Manager and added the widgets to the Layout which made the Scrollbar work like a charm. But i can't use a Layout bcs I'm using drag&drop to move the added Widgets and using a Layout would overwrite positions of the widgets when the Manager-Window is resized.
This makes me even more confused :/
Someone help me fix this please!
@Andre :
Yes of course, it is an evidence (to fix any crashes)! I completely agree with you.
But the crash I was talking about was introduced on purpose in the application to test/verify the behavior of the xml trace writer in such harsh condition (I stated "for example" in my original post - Sorry, I should have been a lot more explicit on this point).
Hi! i would suggest you to try SDL-Library for C++. Maybe that fits your needs.
"LibSDL":http://www.libsdl.org/
"JoyStick":http://wiki.libsdl.org/moin.cgi/CategoryJoystick
Wish you much success!
I've moved this to another thread from "this one":http://developer.qt.nokia.com/forums/viewthread/4583/
Don't use old threads for new not really related questions, please.
About your question. If you need read-only database, then you can add it to qrc (not good solution, really).
Also you can simply copy it with your executable and other files (as I udnerstood you also have qmls there).
The best way that I see is to populate it on first start. It is not hard. All you need is to check if there is file at needed plave and if not, create it and populate with sql queries.
well, thanks for all advices.
Actually, I would like to make for embedding font in application.
Some text files to load from application to make single executable file ..
Thanks
Thanks for your help. However I'm not sure I understood everything.
As I said, the adjustSize() call works: the widget is correctly resized.
The problem is with the move() call. Do you suggest me to replace it with a setGeometry()?