I don't know how you read your text-file. But if it is for example with QTextStream, you coulc read line by line, call QString QString::simplified() const on it. that removes all leading and trailing whitespaces and reduces al other whitespaces to a simple single space. That should include tab and multiple spaces.
Than QString::splitRef(QChar::Space); on it and you have a vector of all your entries (in StringRef format) -> convert it to your container.
@raven-worx Thanks for your answer. There is no other place in the code where I update/modify the model. Also the combo box is already created when the slot is connected and called, if this is what you meant. Initially I declare the combo box as such with an empty model:
And this is the connection in C++ (plus the code to get the settings view inside which the combo box exists):
//Connect signals emitted and received by Settings Form
m_pQmlRoot = qmlEngine.rootObjects();
item = qvariant_cast<QObject*>(m_pQmlRoot->property("settingsPage"));
QObject::connect(bluetoothManager, SIGNAL(sig_DeviceDiscovered(QVariant)), item, SLOT(slot_deviceDiscovered(QVariant)));
Yes the transparency/translucency is easy enough (using Qt.WA_TranslucentBackground).... the real challenge is to be able to apply a blur effect to the exposed underlying background though. And it seems the Qt application just doesn't have access to the pixels on the desktop behind the app.
I doubt the files' content is getting zapped by a "legitimate" write to the file, more that something nasty is causing the underlying disk area to get corrupted.
In itself I can't see that Qt would be the cause. However you probably do a lot more reading/writing of files etc. when you compiling or clanging than in other situations, so the problem may be more likely to show up then.
i have no experience with accessibility on Linux. But maybe the following helps you:
Qt Accessibility is based on AT-SPI via DBus on Unix/X11 and is tested to be working on Gnome and KDE.
Are you sure that i3wm even supports accessibility?
Hi @gsharma ,
I see you solved your problem. I have similar problem. I use qt-5.10 and IP camera. I want to stream with rtsp. Also want to see at QMediaPlayer. Could you please help me. How did you solve problem. Also do you know tutorial about this.
I use Windows and msvc 2015 compiler.
I Installed a qt-opensource-windows-x86-5.9.2.exe. Then I changed a very little some headers in qtwebengine module. Then, I need to rebuild it. I opened configurated by Qt console for msvc2015 x86_64 compiler, go to the src/qtwebengine, typing qmake and after that nmake. nmake only outputs
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
but did nothing.
I downloaded qtwebengine-opensource-src-5.9.2 separately and try to buid it - the same result.
How to rebuild qtwebengine using msvc 2015 compiler?
I am experiencing this problem on 5.11.2 running Linux Mint. So it is still there.
Using the following formulation:
First problem: the dialog initializes with color black, not the given color. When pressing OK, the slot is triggered
but the color is always color white, whatever is selected in the dialg. So essentially it does not work at all.
using the formulation
QColor newColor = QColorDialog::getColor(m_color, this, QString(), QColorDialog::DontUseNativeDialog);
does work as was mentioned before
@raven-worx I don't have any experience with TTS either, also I can't find much info about the current infrastructure on Linux, resp. on KDE. I have installed speech-dispatcher. And I can make it speak in the terminal, using its own spd-say command. I'm not sure how speech-dispatcher and flite are related. I think speech-dispacher is an abstraction layer / daemon, and flite is one of several "engines" it can use.
spd-say --list-output-modules says:
The following packages that seem to be relevant have been installed: