I had an annoyning error message:
error: no match for call to '(QString) (QString&)'
when compiling my qt application.
Took some time before I found what was wrong, the code looked like this:
QString newValue=QString::number(value,'g',1);
if(newValue != value_)
{
value_ = newValue;
emit newValue(value_);
}
The error is that the signal name is the same as the variable:
QString newValue=QString::number(value,'g',1);
if(newValue != value_)
{
value_ = newValue;
emit newValue(value_);
}
So the fix is easy, changed the signal name:
QString newValue=QString::number(value,'g',1);
if(newValue != value_)
{
value_ = newValue;
emit updateValue(value_);
}
Friday, February 14, 2014
Sunday, February 09, 2014
How to make your blogger blog a pinned site with live tiles in windows 8.1
By using www.buildmypinnedsite.com you can create the metadata tags that needs to be added to your site.
1. Added the name and some color:
2. Added the blogs rss feed http://mathiaswestin.net/feeds/posts/default?alt=rss
3. For my blogger site it created:
So I added the following directly under the title tag, notice the added if tags needed to work in blogger, not needed if it's your own site:
The site is now added to start and it's live tiles are updated from the blogs rss feed.
1. Added the name and some color:
2. Added the blogs rss feed http://mathiaswestin.net/feeds/posts/default?alt=rss
3. For my blogger site it created:
<meta name="application-name" content="MathiasWestin.Net"/> <meta name="msapplication-TileColor" content="#666666"/> <meta name="msapplication-notification" content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=5; cycle=1"/>This was added to the blogger template by editing the HTML like described in http://blogknowhow.blogspot.se/2009/05/add-meta-tags-to-blogger-for-better-seo.html:
So I added the following directly under the title tag, notice the added if tags needed to work in blogger, not needed if it's your own site:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='MathiasWestin.Net' name='application-name'/>
<meta content='#666666' name='msapplication-TileColor'/>
<meta content='frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed=http://mathiaswestin.net/feeds/posts/default?alt=rss&id=5; cycle=1' name='msapplication-notification'/>
</b:if>
In IE open the page, right click and choose favorites, click the pin to start button:
The site is now added to start and it's live tiles are updated from the blogs rss feed.
Subscribe to:
Posts (Atom)