Hallo I have 2 problems:
1. I do WebBrowser and when I set Application name
a.setApplicationName("MyBrowser");
Window w;
QApplication a(argc, argv);
a.setApplicationName("MyBrowser");
Window w;
To copy to clipboard, switch view to plain text mode
or
QCoreApplication::setApplicationName(QLatin1String("MyBrowser"));
QCoreApplication::setApplicationVersion(QLatin1String("0.1"));
To copy to clipboard, switch view to plain text mode
now signal iconChanged() never emit but when i don't set Application name all work good
2. I take all history items to QList<QAction *> history;
save function:
QFile historyFile
("/History.bin");
{
return;
}
out << allHistoryAction;
historyFile.flush();
historyFile.close();
QFile historyFile("/History.bin");
if(!historyFile.open(QIODevice::WriteOnly))
{
return;
}
QDataStream out(&historyFile);
out.setVersion(QDataStream::Qt_4_8);
out << allHistoryAction;
historyFile.flush();
historyFile.close();
To copy to clipboard, switch view to plain text mode
all work but in load:
QFile historyFile
("/History.bin");
{
return;
}
in >> allHistoryAction;
historyFile.close();
QFile historyFile("/History.bin");
if(!historyFile.open(QIODevice::ReadOnly))
{
return;
}
QDataStream in(&historyFile);
in.setVersion(QDataStream::Qt_4_8);
in >> allHistoryAction;
historyFile.close();
To copy to clipboard, switch view to plain text mode
this don't work error:
error: no match for 'operator>>' in 's >> t'
Bookmarks