Questions tagged as 'qt'

0
answers

Styles bar and text format in QTextEdit [closed]

I consider adding a text style bar (font size, typeface, bold, italic, underline ...) in a window that contains a QtextEdit. From what I see, I would have to program it from scratch unless there is some QtextEdit feature in the QtDesigner....
asked by 04.10.2018 / 10:06
1
answer

Group widgets vertically and horizontally in a layout

I'm doing a framework in python and Qt, and I have a question. Let's see if with some help I can solve it. My question is this: when making a layout I want some buttons to form a vertical layout and others a horizontal layout, so the screen w...
asked by 28.07.2017 / 11:23
1
answer

How to read the attributes of xml tags using QXmlStreamReader?

I am working with xml files, using the QT Liberia. The problem that presents itself to me is as follows: I do not know how to read the attributes of xml tags using QXmlStreamReader. For example I have the following file: <?xml version="1...
asked by 02.06.2017 / 15:12
1
answer

open Serial port with ExtSerialPort in Qt5

Good afternoon / days I am developing an app with Qt5 in which I need to open and read a serial port, but it does not open I'm in Ubuntu 14.04 //QextSerialPort *Puerto = new QextSerialPort(); //Intenté de esta forma y la siguiente Puerto =...
asked by 30.05.2017 / 00:39
1
answer

a universal character name specifies a non-valid character with QT

Hi, I'm trying to show the unicode keys to learn more about the subject. The char contains the unicode as follows '\ u0041'. It is a QString of the following "\ u0041" that I convert to char '\ u0041'.Codigo: char myChar = s[0].toLatin1(); //...
asked by 11.10.2016 / 23:54
0
answers

Help with setProxy (const QString & proxyJid) in QT

Hi, I need to include a proxy in my XMPP, but I have several questions. Is the SOCKS5 Jid asked to use this? I would have to do the following: manager = new QXmppTransferManager; manager->setProxy(const QString & proxyJid); Source:...
asked by 08.10.2016 / 21:55
2
answers

Use cd command in QT

Hi, I am trying to learn how to use commands in QT with cmd I can do the following: QProcess consola; consola.start("cmd.exe /C " + comando); consola.waitForFinished(); consola.waitForReadyRead(); How can I do to use cd .. for example or cd...
asked by 06.10.2016 / 15:23
1
answer

How to convert the data in unicode QT

Normally when I want to convert the text to string I do the following: QString::fromUtf16((ushort*)buffer); But is there any way to convert my buffer (data) to unicode?     
asked by 26.10.2016 / 13:39
1
answer

starting with qt

I can not create a new project in qt in c ++ language The project I want is Plain C ++ application says it is not configured, what should I configure?     
asked by 03.11.2018 / 04:20
1
answer

My application loses the typographical font when executing it in another pc, QT creator, c ++

I have created an application with Qt creator in which I use a font that is not standard for window. After doing deploy and executing it in another PC, the typographic font of the whole text changes and this damages a lot in terms of the visual...
asked by 16.10.2018 / 19:31