Top Banner
Qt For Beginners - Part 5 Ask The Experts Jeff Tranter Brian Quinn Christopher Probst Integrated Computer Solutions Visit us at http://www.ics.com Video: http://bit.ly/28Yllql Copyright 2016, Integrated Computers Solutions, Inc. This work may not be reproduced in whole or in part without the express written consent of Integrated Computer Solutions, Inc. 1
27

Qt for beginners part 5 ask the experts

Jan 06, 2017

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Qt for beginners part 5   ask the experts

Qt For Beginners - Part 5Ask The Experts

Jeff TranterBrian Quinn

Christopher ProbstIntegrated Computer SolutionsVisit us at http://www.ics.com

Video: http://bit.ly/28Yllql Copyright 2016, Integrated Computers Solutions, Inc.

This work may not be reproduced in whole or in part without the express written consent ofIntegrated Computer Solutions, Inc.

1

Page 2: Qt for beginners part 5   ask the experts

In QML, I have a Text item with wrapMode: Text.Wrap but the text isn't wrapping. What am I doing wrong?

Questions

2

Page 3: Qt for beginners part 5   ask the experts

import QtQuick 2.6

Rectangle {

width: 400

height: 300

Text {

anchors.centerIn: parent

font.pixelSize: 18

width: parent.width

wrapMode: Text.Wrap

text: "No live organism can continue for long to exist sanely under conditions of absolute reality; even larks and katydids are supposed, by some, to dream. Hill House, not sane, stood by itself against its hills, holding darkness within; it had stood so for eighty years and might stand for eighty more. Within, walls continued upright, bricks met neatly, floors were firm, and doors were sensibly shut; silence lay steadily against the wood and stone of Hill House, and whatever walked there, walked alone."

}

}

Questions

3

Page 4: Qt for beginners part 5   ask the experts

Would it be possible to go into more detail with kit configuration for cross-platform development and remote deployment? Preferably with device configuration and deployment demonstration. To demonstrate the concept you could use any device, but I have a particular interest in a Raspberry Pi running Linux, and a Surface Pro running Windows 10.

Questions

4

Page 5: Qt for beginners part 5   ask the experts

Still having difficulty connecting to PostgreSQL from Qt. Looked at forums, followed their recommendations and still get "Not Loaded".There's a Russian and a Spanish step-by-step guide, which I find awkward to follow properly. Is there something very similar in English? Video plus text would be great. I'm using Windows 7 x64 and MingW. I can connect directly using pgAdmin3, Valentina Studio, MS-Visual Studio, SQL Studio for PSQL, LibreOffice... Hope you can help. Thanks in advance.

Questions

5

Page 6: Qt for beginners part 5   ask the experts

Should I use the QML Designer in Qt Creator? I heard it was not really ready for production use.

Questions

6

Page 7: Qt for beginners part 5   ask the experts

I would like to develop a simple app to open up a URL to a website and then get information from the website that will populate some fields in my app. What is the easiest way to do this? are there any Qt Quick controls that can assist?

Questions

7

Page 8: Qt for beginners part 5   ask the experts

Is it possible to place a button widget over top of an QOpenGLWidget to make a UX comparable to Google maps? The button widget would be like the stationary user account button in Google maps while the map would live in the QOpenGLWidget. Ideally the button would be transparent. This person http://stackoverflow.com/questions/16889319/put-transparent-qwidget-on-top-of-qmediaview-in-qt5-on-ubuntu did something similar by making the button a separate window that tracked the main window, but is hackish.

Questions

8

Page 9: Qt for beginners part 5   ask the experts

What are some of the pros and cons of using Qt resources?

Questions

9

Page 10: Qt for beginners part 5   ask the experts

Can you give me some guidance on whether to use qmake, qbs, or cmake as my build system?

Questions

10

Page 11: Qt for beginners part 5   ask the experts

Can I use QML to create an editable TableView that uses SQLite as the backend datastore? If so, how do I do this? If not, is there another technique I can use to achieve an editable table with a database backend?

Questions

11

Page 12: Qt for beginners part 5   ask the experts

WebEngine is not available for MINGW on Windows. Will WebEngine support for MINGW be available soon for 5.7 ?

Questions

12

Page 13: Qt for beginners part 5   ask the experts

How do you handle QML textEdit that anchored to bottom of screen on iOS and Android devices?

Questions

13

Page 14: Qt for beginners part 5   ask the experts

Someone told me that widgets are obsolete? Should I not be using them?

Questions

14

Page 15: Qt for beginners part 5   ask the experts

How can I contribute to the Qt project?

Questions

15

Page 16: Qt for beginners part 5   ask the experts

Are all Qt classes derived from QObject?

Questions

16

Page 17: Qt for beginners part 5   ask the experts

Are there virtual slots? How about virtual signals?

Questions

17

Page 18: Qt for beginners part 5   ask the experts

Qt promises binary compatibility between releases. What does that mean?

Questions

18

Page 19: Qt for beginners part 5   ask the experts

What does the access level (public, private, protected) mean for slots?

Questions

19

Page 20: Qt for beginners part 5   ask the experts

What is the recommended approach for fetching and displaying images on iOS using Apple's Photos framework and Qt Quick? Simply invoking the default image picker is not sufficient because the intention is to allow the user to select multiple images. On Android this is fairly straightforward: fetch a set of URLs in C++, and pass them in a model to a QML view whose delegate includes an Image. However, it does not appear to be possible to use URLs in this way on iOS unless the image is an asset in the project. Moreover, iOS image data (NSData *) cannot be fed directly into the constructor for QImage, for example, with the idea of wrapping the QImage in a sub-class of QQuickPaintedItem. So, what can we do? Thank you!

Questions

20

Page 21: Qt for beginners part 5   ask the experts

What is the difference, if any, between Qt Quick and QML?

Questions

21

Page 22: Qt for beginners part 5   ask the experts

What is a d-pointer?

Questions

22

Page 23: Qt for beginners part 5   ask the experts

I suspect I have a memory leak. How can I track it down?

Questions

23

Page 24: Qt for beginners part 5   ask the experts

Is there a way to make system() calls through Qt? For example, can I open the Windows notepad from within a Qt application?

Questions

24

Page 25: Qt for beginners part 5   ask the experts

How can I know what Qt header files I need to include?

Questions

25

Page 26: Qt for beginners part 5   ask the experts

What is the preferred rendering backend to use for Qt on embedded Linux?

Questions

26

Page 27: Qt for beginners part 5   ask the experts

This Completes the Qt for Beginners Webinar series.

Thanks for attending!

Watch for more webinars coming up in the future.Consider taking a formal Qt training class from ICS.

Hope to see you at the Qt World Summit 2016!

27