Programavimas

Problem with QTableWidgetItem and QTableWidget

I have a small problem with QTableWidget and QTableWidgetItem. I have a QHash<QString, QString> downloadQueue. There is at least one entry inside downloadQueue. The point is, that items inside downloadQueue are not added to the QTableWidget. I don't know  why.
void MDIChildWindow::regenerateTabs() {

m_ui->tableWidgetDownloadQueue->clearContents();

int row = 0;

Qt. How to create a contex menu for QTableWidget?

Add a method definition into your .h file:
private slots: void cool_slot();
Add a line in the constructor of the class:
m_ui->tableWidgetRemoteSite->setContextMenuPolicy(Qt::CustomContextMenu);
Then click on your QTableWidget component and add a method for your customContextMenuRequested(QPoint pos) event (right click and select Go to slot...):
void MDIChildWindow::on_tableWidgetRemoteSite_customContextMenuRequested(QPoint pos)

{

How to access "icons" directory of Apache installation?

By default Windows Apache directory looks like that:
2009.09.08  21:31    <DIR>          . 2009.09.08  21:31    <DIR>          .. 2004.11.21  13:50            15.159 ABOUT_APACHE.txt 2009.09.08  21:27    <DIR>          bin 2009.09.08  21:27    <DIR>          cgi-bin 2009.08.06  02:33           102.237 CHANGES.txt 2009.09.08  21:27    <DIR>          conf 2009.09.08  21:27    <DIR>          error 2009.09.08  21:27    <DIR>          htdocs 2009.09.08  21:27    <DIR>          icons 2008.09.18  13:16             4.835 INSTALL.txt 2

BLDMAKE ERROR: ERROR: cpp.exe returned non-zero exit status (1280)

I tried to compile an example from Symbian instaliation with Carbide.C++ and I got a strange error:
BLDMAKE ERROR: ERROR: cpp.exe returned non-zero exit status Build returned with exit value=-1
The solution is: go to the "group" folder of your program and run bldmake bldfiles This solution worked, but I decided to find out, why this problem is caused. The answer: Carbide.C++ must be run with Administrator privilegies. And I was working with Limited account :)

Required software for development

I thought it might be interesting to post something about development for the Symbian OS. So, at start we need some software. We'll need two things: a development environment (IDE) & SDK for Symbian OS. Lets start with IDE. Symbian OS has a wonderful page about development: http://developer.symbian.com/main/index.jsp.