Our old code has tons of assignments inside if statements, like:
if (err = somefunction())
return err;
These are flagged by the clangd suggesting that it should be either
if ( (err = somefunction()) )
or
if (err == somefunction())
In the past, if you left-clicked on the little light bulb
Thank you for the tips. Got the checkboxes working.
--
Mike Jackson
On 5/4/22, 10:06 AM, "Interest on behalf of Tony Rietwyk"
wrote:
On 4/05/2022 11:43 pm, Michael Jackson wrote:
> ...
> Now on to figure out how to display checkboxes next to each item. I've
tried:
>
> Qt:
On 4/05/2022 11:43 pm, Michael Jackson wrote:
...
Now on to figure out how to display checkboxes next to each item. I've tried:
Qt::ItemFlags ImportDataStructureModel::flags(const QModelIndex& index) const
{
if(!index.isValid())
{
return {};
}
return Qt::ItemIsUserCheckable | Qt
Thanks for the help. I was able to track it down to errors in my parent(…)
method. I was just returning:
return createIndex(0, 0, some_unique_value);
which apparently works just fine for tree views but not for QColumnView.
Now on to figure out how to display checkboxes next to each item. I've t
> -Ursprüngliche Nachricht-
> [...]
> Is there a reason to be using a vbs file ? In windows a running executable
> cannot replace itself, but it can rename itself. [...]
Hi Julien,
I don't know the exact reasons why the .vbs approach was chosen. I now filed
https://bugreports.qt.io/brow
Le mer. 4 mai 2022 à 08:44, Kai Köhne a écrit :
> They are not _included_ in the MaintenanceTool package. Anyhow,
> "deferredrenameXX.vbs”are temporary files the MaintenaceTool.exe writes
> to schedule an update of itself. That is, because on Windows an executable
> cannot be replaced when