Qt Quick’s QML language makes it easy to do many things, especially fancy animated user interfaces. However, some things either can’t be done or are not suitable for implementing in QML, such as:
- Implementing performance critical functions where native code is desired for efficiency.
As we’ll see, Qt makes it quite easy to expose C++ code to QML. In this blog post I will show an example of doing this with a small but functional application.
The example is written for Qt 5 and uses the Qt Quick Components so you will need at least Qt version 5.1.0 to run it.
To expose a C++ type having properties, methods, signals, and/or slots to the QML environment, the basic steps are:
- Define a new class derived from QObject.
- Put the Q_OBJECT macro in the class declaration to support signals and slots and other services of the Qt meta-object system.
- Declare any properties using the Q_PROPERTY macro.
- Call qmlRegisterType() in your C++ main program to register the type with the Qt Quick engine.
For all the details I refer you to the Qt documentation section Exposing Attributes of C++ Types to QML and the Writing QML Extensions with C++ tutorial.
Ssh Key Generator
For our code example, we want a small application that will generate ssh public/private key pairs using a GUI. It will present the user with controls for the appropriate options and then run the program ssh-keygen to generate the key pair.
I implemented the user interface using the new Qt Quick Controls since it was intended as a desktop application with a desktop look and feel. I initially developed the UX entirely by running the qmlscene program directly on the QML source.
The UI prompts the user for the key type, the file name of the private key to generate and an optional pass phrase, which needs to be confirmed.
The C++ Class
Now that have the UI, we will want to implement the back end functionality. You can’t invoke an external program directly from QML so we have to write it in C++ (which is the whole point of this example application).
First, we define a class that encapsulates the key generation functionality. It will be exposed as a new class KeyGenerator in QML. This is done in the header file KeyGenerator.h below.
// Simple QML object to generate SSH key pairs by calling ssh-keygen.
class KeyGenerator : public QObject
Q_PROPERTY(QString type READ type WRITE setType NOTIFY typeChanged)
Q_PROPERTY(QStringList types READ types NOTIFY typesChanged)
Q_PROPERTY(QString filename READ filename WRITE setFilename NOTIFY filenameChanged)
Q_PROPERTY(QString passphrase READ filename WRITE setPassphrase NOTIFY passphraseChanged)
void setType(const QString &t);
void setFilename(const QString &f);
void setPassphrase(const QString &p);
Gamers can now obtain the latest gaming keyboard option in the shopping list. The new gaming keyboards come from Gigabyte called FORCE K7 Stealth. And as a gaming keyboard, FORCE Stealth K7 is also equipped with several features gaming supporters.
The main feature on the keyboard is the anti-ghosting. This feature allows players to be able to press 7 keys simultaneously without conflict. But not all of the support this feature. There are only seven buttons, namely the Q, W, A, S, D, left Shift and Spacebar.
In addition keyboard also comes with a three-color illumination that can be arranged. Three colors are blue, green and cyan. Not only that, the keyboard buttons also have a thin structure. With so each button is pressed, aktuasinya very close distance.
Acer America today announced that its Acer Aspire Z3-605 series All-in-one desktops are now available for consumers in the United States. The new 23-inch AIO includes two three-watt front-facing Harman Kardon speakers, in addition to up to a Core i5 processor. The unit can be configured with as much as 8GB DDR3 dual-channel memory, and a 1TB hard drive.
The new line includes a HDMI input port for attaching a gaming console or television. Two USB 3.0 ports and two USB 2.0 ports link the systems to peripherals and digital devices. An integrated SuperMulti optical drive enables DVD movie viewing as well as the burning of music and photos to CDs.
Select models feature a Full HD IPS display with 10 point touch. The IPS technology delivers consistent images, colors and brightness from all viewing angles up to 178 degrees. The unit is also configurable with integrated hand recognition software that reads human gestures for easily controlling the Windows 8 user interface and cursor from a distance.
The Acer Aspire Z3-605 series AIO desktops will be available at leading retailers at a starting price of $700 without touch capabilities, and $800 with touch.
While using hashtags in Facebook posts might be a fun tactic for brands trying to engage consumers, it doesn’t appear to be paying off, a new study finds.
Research from social media analytics firm Simply Measured revealed that while 20 percent of Facebook posts among top brands now include hashtags (which give users a way to group messages of similar content), there is no evidence that hashtags are influencing engagement.
The study shows that posts with hashtags —a new feature added with in the last several months — perform as well as those without, suggesting that people are not yet discovering brand posts by their tags.
Overall, the study shows nearly all of the companies in the Interbrand 100 — which ranks businesses based on financial status — now have a Facebook fan page, with 60 percent posting something at least once a day.
[No, Really, Facebook Makes Employees More Productive]
The research revealed that visual content is by far the primary driver for engagement on Facebook. Photos posted by top brands average more than 9,400 engagements, which includes likes, comments and shares, per post, while video posts average more than 2,500.
When it comes to text posts, brands must walk a fine line. Analysis of more than 500 status updates from the top brands shows that the longer a status update is, the less engagement it typically receives. However, if a status update is too short — less than 50 characters — it may not be long enough to capture viewers’ attention or provide the necessary context to drive the number of likes, shares and comments a brand would like.
“For most brands, Facebook is no longer just a network; it has become the hub of their social marketing efforts and one of the most effective ways to engage with fans,” said Adam Schoenfeld, CEO of Simply Measured. “This latest research once again proves that knowing your audience, understanding your content assets and measuring your efforts are extremely important to develop the social strategies that will work best for you.”
Businesses that limit Facebook fans from writing on their page might want to reconsider their strategy. The research shows that nearly 30 percent of top brands do not allow users to post on their wall. For those brands, user engagement on their page is limited to likes, comments and shares, resulting in 15 percent less engagement than brands that do allow user posts.
When it comes to drawing the most Facebook fans, no one does it better than Facebook itself. The social media giant claims the top spot with 93 million fans, followed by Coca-Cola and MTV.
Easy Solutions, the Total Fraud Protection® company, today released Detect Safe Browsing (DSB) version 4.0. With DSB 4.0, financial institution can provide an important additional layer of fraud prevention to the end-user, to better protect against malware and other sophisticated threats such as, pharming, man-in-the-middle (MITM) and man-in-the browser (MITB) attacks. With DSB 4.0, Easy Solutions now extends this support to the two most popular mobile platforms: Android and iOS, ensuring that over 90%1 of mobile users can securely access their mobile banking accounts.
The APWG recently reported over 1.3 million confirmed-malicious files for Android alone2, making mobile malware one of the fastest growing classes of threats.
“Mobile banking has become the preferred method for many consumers to conduct their online banking. Unfortunately for financial institutions, some of the most insidious and difficult-to-detect malware is now being targeted at the mobile end-point,” said Daniel Ingevaldson, CTO of Easy Solutions. “With Detect Safe Browsing now available for iPhone and Android devices, financial institutions will be able to provide their customers with a simple and unobtrusive way to secure their mobile banking experience.”
DSB is a critical component of Easy Solutions’ Total Fraud Protection platform, which provides comprehensive fraud protection across all channels, and extended to the end-user. By combining cross-channel risk-scoring, transaction anomaly detection, multi-factor authentication, secure browsing, and detection and take-down services, Easy Solutions blocks criminals at all three phases of the fraud lifecycle – planning, launching, and cashing – while ensuring that authorized users can conduct business.
DSB 4.0 from Easy Solutions provides visibility and real-time intelligence of the threats impacting consumers. Based on a proprietary cross validation technology that prevents re-direction to fraudulent websites, DSB 4.0 includes some of the following capabilities:
- Secure Mobile Browsing with the DSB App: The free DSB app, now available for both iOS and Android devices, gives customers a simple way to protect bank transactions performed on their mobile device or tablet
- Accelerated Disinfection: DSB enables customers to quickly deploy on-demand cleanup procedures for malware related advanced persistent threats (APTs), enabling financial institutions to mitigate zero-day and targeted attacks.
- Active Phishing Protection: DSB provides enhanced phishing protection based on Detect Monitoring Services’ (DMS) black list. Since DMS detects phishing attacks in early stages, DSB users are protected from the very latest phishing scams, minimizing their exposure to fraud.
- Proactive, Real-time Malware Protection: DSB employs proprietary cross-validation technology that detects DNS poisoning and ensures that the end user can connect to the protected site. When an active redirection is detected, DSB stops the fraudulent connection.
ABOUT EASY SOLUTIONS
Easy Solutions delivers Total Fraud Protection® to over 100 clients, with over 32 million end users. The company’s products protect against phishing, pharming, malware, Man-in-the-Middle and Man-in-the-Browser attacks, and deliver multifactor authentication and transaction anomaly detection. For more information, visit http://www.easysol.net, or follow us on Twitter @goeasysol.
JAKARTA – Toshiba notebook to hit the market back in the homeland. Having recently launched a dual function, this ultrabook, Toshiba re-introduced its notebook personal computer (PC) in Indonesia under the name Toshiba Satellite C40D.
Toshiba Satellite C40D which is the development of TV technology from Toshiba, claimed more powerful and rich graphics. The kitchen was redone powered by Quad-Core AMD A4 APU.
Channel Manager of Toshiba Singapore, Albert Susilo states, with the audio technologies V2 Toshiba Audio Enhancement Technology, the consumer ear audio quality spoiled by sharp and clear. “Crystal clear,” he said at the launch of the Toshiba Satellite C40D at Le Meridien Jakarta, Monday (8/7).
With a unique design and is claimed to be better than the previous generation, Toshiba Satellite C40D available with spans 14.0 HD screen. The price is pegged at under $ 5 million. “Toshiba Satellite C40D be available in the Indonesian market in early July at a price of USD 439,” said Albert Susilo.
While AMD Indonesia Country Manager, Jenny Susanto said all products from AMD’s APU is designed to provide the best computing experience. “This notebook is instantly able to deliver sharp image quality, color, and more life to improve the consumer experience in watching the video,” he said.
Jenny added, AMD has always made a breakthrough to provide the latest experience that not only includes the traditional architecture, but also the latest graphics processing interface. To provide experience productivity, graphics, and entertainment, this notebook is reinforced with a variety of the latest exclusive technology from Toshiba and AMD.
When was the last time you had to delete a bunch of photos or apps on your mobile device to clear out space? With the massive amount of data generated every day, it’s easy to exhaust all the available storage on your phone or tablet.
And this problem is only getting worse. Industry trends suggest that device storage capacities are growing at 25 percent per year, but the amount of data being produced is increasing even faster — by around 50 percent a year, according to Microsoft. The software giant is looking to address this problem with SkyDrive, which will be updated in Windows 8.1 with the goal of giving you access to your files at all times, without taking up all your available storage or Internet bandwidth.
The updated service utilizes what Microsoft refers to as “placeholder files,” which look and feel like normal folders and files with one major change — you don’t download the full file until you access it. The placeholder file contains just a thumbnail image and some basic properties, making it significantly smaller than its actual size. This means that 100GB of files in SkyDrive will use up less than 5GB of storage on the hard drive of your Windows 8.1 device, Mona Akmal.
“I have a Pictures folder in SkyDrive that’s 5.6GB in size but it’s only taking up 185MB on the local disk,” Akmal wrote.
Another major change to SkyDrive in Windows 8.1 deals with offline access to files. With the SkyDrive app, you’ll now be able to mark any folders or files you want remain available when you lose Internet connectivity.
Any edits you make to a file while offline will automatically be synced back up to SkyDrive when you regain a connection. For added convenience, all the files you open or edit on your device will automatically be marked for offline access.
As a reminder, new SkyDrive users get 7GB of storage for free. After that, an additional 20GB costs $10 per year, while 50GB will set you back $25 a year, and 100GB costs $50 a year.
We sat down with Angus Logan, group product marketing manager for SkyDrive (pictured below), last week to get the scoop on the most important changes to the online storage service in Windows 8.1.
NVidia has just introduced its newest graphics card aimed at the visual computing industry and is claimed as the fastest graphics card in the world. K6000 Quadro graphics cards are built using Kepler architecture.
NVidia party also claims that this graphics card has the ability computational five times better than the Quadro 6000 graphics card before. Not only that, the graphics card is also claimed to have twice the graphical capabilities better than the Quadro 6000.
NVidia Senior VP, Ed Ellet said that this graphics card will give a significant change to the game animator, digital designer or programmer. Furthermore, Ellet said that the graphics card is capable of doing things that were previously impossible to do.
Some of the features possessed by the K6000 Quadro graphics cards are:
– The graphics memory GDDR5 ultra-fast 12GB
– Streaming 2880 core multiprocessor (SMX)
– Support for simultaneous display with a resolution up to 4k using DisplayPort 1.2
– It has ultra low latency video I / O, and support large-scale visualization
SAN JOSE, Calif., July 2, 2013 /PRNewswire/ — MontaVista® Software, Inc., the leader in embedded Linux®commercialization, today announced Carrier Grade Edition® (CGE) support for the Carrier Grade Linux 5.0 profile for ARM architecture. This milestone marks the first CGL registered product to support the ARM architecture. The tidal wave of smart phone and tablet usage has created a situation where mobile broadband demand is outpacing infrastructure capability. Carriers are racing to expand capacity while reducing the power required to run the mobile broadband telecommunications infrastructure. For almost a decade, Telecom OEM and carriers have defined their Linux requirements using the Carrier Grade Linux specification. MontaVista has bridgecd the gap between next generation silicon on ARM and Telecom Linux requirements.
“To support ARM-based SoC designs for carrier and cloud equipment, we recognize the importance of carrier grade software platforms to be in lock step with those silicon implementations, as this will accelerate time-to-deployment for highly reliable, available and secure next-generation equipment,” said Bob Monkman, manager, Enterprise Networking Segment for ARM. “MontaVista pioneered the Carrier Grade Linux movement, and it continues to be a leading innovator for this software platform that remains the crucial benchmark for network equipment and data centers alike. This milestone is another proof point that the necessary software ecosystem is in place for ARM-based systems to deploy into the global communications network.”
MontaVista’s Carrier Grade Edition is designed for high reliability infrastructure markets. CGE is the standard foundation of a Linux based platform, certified to meet performance requirements, high availability, serviceability, hardening, and real-time response. The CGE multi-architecture platform allows customers to cross compile across all major architectures knowing they have met all CGL, LSB, and IPv6 requirements. Only MontaVista provides a Carrier Grade Linux cross-architecture platform that allows telecom & network equipment manufacturers to cross compile from other architectures to ARM for their next-generation devices.
“As the provider of the world’s most widely-deployed Carrier Grade Linux, MontaVista is committed to supporting the ARM ecosystem with certified and high-performance operating systems.” said Patrick MacCartee, Director of Marketing for MontaVista Software. ”
MontaVista is bridging the gap between IT and Telco Linux operations systems by providing leadership in the Linaro Network Group (LNG), where it sits on the steering committee, as well as being part of the Carrier Grade Linux community. Our unique experience enables us to provide the best-in-class platform for ARM in cloud and carrier infrastructure applications. MontaVista is supporting the ARM architecture for a range of applications in the telecom supply chain. Work is underway to provide KVM-based virtualization to enable cloud-based solutions for mobile core and data plane on the ARM architecture.
“MontaVista has led the way in providing Carrier Grade Linux (CGL) support since the first Requirements Definition document in 2002,” said Mark Orvek, Linaro VP of Engineering. “We’re pleased to see MontaVista Linux Carrier Grade Edition listed by the Linux Foundation as the first distribution to implement the CGL specification on the ARM platform and we’re very happy to be working together with MontaVista and the other industry-leading members of
Facebook shares rallied an impressive 30% Thursday, allowing the stock to book its best one-day gain ever. And while shares remain about 10% below the May 2012 IPO price of $38, analysts are predicting that Facebook is finally on its way to reaching, and even crossing, that threshold.
“Facebook delivered its strongest quarter yet as a public company — results that we think could be thesis-changing for many,” said Doug Anmuth, a JPMorgan analyst who boosted his price target to $44 a share from $35.
Investors and analysts are most impressed by Facebook’s growing strength in mobile advertising — a part of the business they were initially most concerned about since Facebook lacked a clear strategy for mobile advertising despite the rapidly growing number of people using Facebook on their mobile phones and tablets.
“One year into Facebook’s mobile advertising efforts, mobile has increased from zero to 41% of total ad revenue,” Anmuth highlighted in a note to clients.
While the improvements have been gradual, Facebook blew everyone away this past quarter by generating 50% more in mobile ad revenue than what Wall Street was expecting.
Even after that stellar quarter, analysts say growth should remain strong as Facebook continues to shift toward more social ads that will become increasingly valuable to advertisers.
Analysts at JMP Securities, who increased their share price target to $38, said that social media giant’s second-quarter results suggest that “Facebook is increasingly becoming a ‘must buy’ for advertisers.”
Goldman Sachs analysts were also excited by Facebook’s significant improvement in mobile advertising. They put a bullish price target of $46 on Facebook shares.
“We continue to believe Facebook is at the center of the mobile ad revolution and see considerable opportunity for it to drive higher pricing on its ad units as brand and direct marketers alike take advantage of its broad reach and precise targeting,” said Goldman analyst Heather Bellini.
As Facebook (FB) shares surged, a number of investors were getting in on the action. Over 360 million shares of Facebook had exchanged hands Thursday, more than seven times the stock’s average daily trading volume.
The day’s surge pushed the value of Facebook to more than $80 billion, up from just over $60 billion as of Wednesday’s closing bell.
Facebook’s advance was also getting plenty of attention on Twitter.