Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible.
Thanks for reporting this.
I dont know the module well enough to say for sure but looking over the backend code
it seems not much information besides playing state that is sent back to the Qt plugins.
So i would guess on No.
However, you could ask on the dev mailing list where the Qt devs hang out and see
if they know a way. (maybe via the backend directly )
@l3u_ said in How to use SQLite's PRAGMA application_id:
and without any hint in the documentation
Some pragmas take effect during the SQL compilation stage, not the execution stage. This means if using the C-language sqlite3_prepare(), sqlite3_step(), sqlite3_finalize() API (or similar in a wrapper interface), the pragma may run during the sqlite3_prepare() call, not during the sqlite3_step() call as normal SQL statements do. Or the pragma might run during sqlite3_step() just like normal SQL statements. Whether or not the pragma runs during sqlite3_prepare() or sqlite3_step() depends on the pragma and on the specific release of SQLite.
You mean here? So please provide the function signature of Album::name().
Btw.: Why are you using Qt 5.14? It is not released yet. Have you tried 5.12.x or 5.13.x?
Hi, welcome to the forum.
I think you mean "solution explorer". Those files are build artifacts. They are not part of the solution so they don't show up in the solution view.
If you really need to see them in VS you can hit the little "Switch Views" icon on the solution explorer's toolbar. This will switch the view to show you the filesystem hierarchy.
Why do you need that anyway? You're not suppose to edit those files.
I know nothing about this(!) But you pass mGraphicsView->scene()->sceneRect() as the rectangle for fitInView(), if you want to exclude non-visible objects can't you calculate the necessary rectangle accordingly and pass that instead?
Np, and do please also consider @Pablo-J-Rogina very valid point that
such algorithms can be had via a library so writing one yourself might not be the best
way unless its only kruskal's you are after and the app will never need to use other algorithms.
Or its simply for learning.
remove the line
in fast test with your code (using buttons )
(without that line.)
else it looks like ((with that line.))
as you insert the stretch after the other widgets.
That tool is 10 years old and seems to be made for Qt4 and will require (many) changes to the files to compile in Qt5.
Also it might generate code that do not work with Dlang in QtE5 version since its so old.
I did try to open project and press compile but it exploded in errors. sorry.
@Pl45m4 said in Problems launching a QProgressDialog after main window is made visible:
Did you wrote something about the busy indicator? I must have missed it
Well, actually it was in the comments in the code, not in the post itself. Probably I cut it to reduce the size of the post. Sorry!
Now it makes sense ;-)
But I've never heard about using the progressBar as busy indicator. How did the person from the other forum this "trick"?
Yes I know that the window_loaded signal was made by you, but it should work even without the MainWindow::.
About this, I've moved the signal & connect to Qt5 format, and now it works ok (but I still must move the qApp->processEvents(); to SearchFiles function). Ah! The compiler forces me to write the two MainWindow::
connect(this, &MainWindow::window_loaded, this, &MainWindow::on_actionInitializeTestInit, Qt::ConnectionType(Qt::QueuedConnection | Qt::UniqueConnection));
If I remove them, I get syntax errors.
@JCBaraza said in Problems launching a QProgressDialog after main window is made visible:
Note that if you edit a QProgressBar in the Qt Design editor, you do have a property called "textVisible" that you can check or leave unchecked
This is exactly what the line does ;) Or should do... Haven't tested it. Dunno if it shows the percentage value or just hides the text, but setting the text visibility to true or false is pretty much the same as (un-)checking the property in Qt Designer.
(Everything that can be done with Designer, can be done with code only, but code is even more powerful)
I'm affraid not in this case: there exist no member in QProgressDialog called setTextVisible (nor textVisible or similar); it only exists setVisible, which affects all the dialog...
I suppose it's because the setTextVisible is a member of QProgressBar. That's why I guess that the only way to get it in my QProgressDialog will be by customizing a QProgressBar and then replacing the bar in my QProgresDialog:
I've used this, and it works as I expected. And what's more. If you may need to change the progress display to progress mode instead of busy indicator, you only have to do is to change the text visibility of the progress bar and the progress dialog Range (and Value):
progress.setValue(i); // "i" means any value representing the percentage of the task performed
// Continue operations varying Value as usual
I hope this can be useful for someone.
Just found an article and several posts on StackOverflow about this trick. The blog post said that all three properties need to have a value of zero (min, max and value, which is 1 or 5 in your case). Have you tried it without setting any (progress) value?
Actually I've tried setting Value to 0, 1 and not setting any value, and it works exactly the same in all cases, both when it worked and when it didn't. In fact, I've left in my example with Value unset, and it's working.
Thanks again for your interest.
@Pablo-J-Rogina thanks. Just looked into it. As the docs for QNetworkConfiguration state:
QNetworkConfiguration encapsulates a single access point or service network. In most cases a single access point configuration can be mapped to one network interface.
I deduce from that, that any call to QMediaPlayer::setNetworkConfigurations(QList<QNetworkConfiguration>) will not fix my problem. In fact, I gather from the information, that QNetworkConfiguration deals more with hardware-side networking & routing configurations than it does with specifics for transmission protocols.
This notion is strengthened by the fact, that there is no accessible public members for QNetworkConfiguration and the only available constructors are copy and default. Therefore, the only way accessible way to provide valid values to setNetworkConfigurations is by filtering QNetworkConfigurationManager::allConfigurations()). Then again, this method produces a list dependent on the host system, which indicates hardware specific settings.
Still, I got curious while reading the desciption for QNetworkConfiguration::ServiceSpecificPurpose, which states:
The configuration can be used for operator specific services (e.g. receiving MMS messages or content **streaming**).
For experimental purposes I filtered all available configurations of that type, which again didn't change anything for me.
(Also, be sure to check out my latest edit up top, if you care for more info)
Can you show the full code ?
If i do
class MainWindow : public QMainWindow
MainWindow(QWidget *parent = nullptr);
QMap<QString, int> data; // the actual list
void myslot( QMap<QString, int> &p) // slot
p["test"] = 10;
void mysignal( QMap<QString, int> &p); // signal
and then in ctor
connect(this, &MainWindow::mysignal, this, &MainWindow::myslot);
it works as expected and i dont get the "Cannot queue arguments"
So are you trying to send signal to/from a other thread `?
or in which way does your code differ ?
That was not what I meant. I was thinking of somewhere, maybe widget validators, where it was not clear to me whether the pattern you were giving was treated as if it had to match the whole input, i.e. as though it were enclosed in ^$. And in that case specifying ^$ would be two literal characters, and not match empty.
EDIT Ah, https://doc.qt.io/qt-5/qregexpvalidator.html#details
When QRegExpValidator determines whether a string is Acceptable or not, the regexp is treated as if it begins with the start of string assertion (^) and ends with the end of string assertion ($); the match is against the entire input string, or from the given position if a start position greater than zero is given.
@JonB no Qt does not forbid you to do that.
@Ivan-Megazoo do that connection in your constructor and only there.
Beside that, you are already deleting the reply in the slot so why are you trying to delete it even more ?
On a side note, why are you subclassing QNetworkAccessManager ? Your T_Manager class should rather be in the "has a" rather than "is a".
@pixbyte said in Close / Stop MDIChild in its constructor:
Dialog or widgets...I think everyone knows what I mean.
Yep, but for dialogs, there are Accept and Reject etc so in some use cases its really not the same :)
if whole application closes, please try setting
setQuitOnLastWindowClosed(false); on the application.
and see if that is what you are experiencing.
That said, its really not super to try to cancel construction from within the ctor.
However, it should work. ( i think)
Is there a reason you cant just do
bool MdiChildDiskInfo::readDiskInfo() .. <<< let it return a status if empty or not
MdiChildDiskInfo * di = new MdiChildDiskInfo(..)
if (! di->readDiskInfo() )
di->DeleteLater(); // nothing to show get rid of it