i solved the textCursor issue. textCursor() should have been ui->textEdit->textCursor(). the selectedText() i can use to make the bold.
this topic is solved.
Just for the records:
Unfortunately, SQLite does not provide a native date/time type. It is usually mapped into a string columns (like in your case) or an int or double typed column (usually holding seconds since epoch = 1970-01-01 00:00:00 GMT).
PS:
Ah, I see you got that string to date conversion already and just search for the proper way to inject that beast.
Relative paths are resolved relative to the current directory. The dot "." represents the current directory. So our setCurrent is nothing else than "change the current directory to the current directory".
I guess you want to set the current directory to that folder that holds the executable. If so, then use this:
@
QDir::setCurrent(qApp->applicationDirPath());
@
Or better prepend your file path with that string.
[quote author="Volker" date="1313674766"]The web view has a parent and "suffers" from event propagation through that, but it is not in a layout and it may fail to receive some events this way.[/quote]
Very good to know, thanks for the reply (and sorry for my late one).
Kyle
@QPixmap* pixmap = new QPixmap("some.png");@
This is should work. Since you are not using the resource system, you must do one thing :) . Copy the image to build directory.
According to "doc":http://doc.qt.nokia.com/latest/qpixmap.html#QPixmap-4
bq. If fileName contains a relative path (e.g. the filename only) the relevant file must be found relative to the runtime working directory.
You can't add layouts to a QMenu, but you can add widgets containing menus to a QMenu using "QWidgetAction":http://doc.qt.nokia.com/latest/qwidgetaction.html.
Not from the top of my head, but I know there is such a library in Calligra Suite, a branch-off of KOffice that can write .odt files. Recent versions of Word can read and write those files.
I don't think the solution presented in that FAQ is very usable. Nice if you want to render one fixed word in a fixed color, but it does nothing to support rendering actual rich text in an item view.
[quote author="kitten" date="1313915797"]my windows is 64 bit and when i compile it on release mode it doesn't run [/quote]
You should also compile 32 bit for 32 bit systems. 32 bit software can run on 32 bit machines and on 64 bit machines. 64 bit software only on 64 bit machines.
The second thing is, if you compile with MSVS, you must always ensure that the redistributables are correctly installed.
[quote author="Rahul Das" date="1313916068"]Kalster , you have already raised a question regarding this. Please check the work around i have posted in your other "thread":http://developer.qt.nokia.com/forums/viewthread/9006/.[/quote]
Rahul Das is correct. i really do not need this topic anymore because he helped me out in the other topic. he basically solved two topics in one post.