Skip to content

The Lounge

Chilling out? Want to discuss Abraham Lincoln? Well, in the Lounge you can discuss literally anything.
1.0k Topics 8.8k Posts
  • This topic is deleted!

    Unsolved 11 Feb 2023, 02:25
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • This topic is deleted!

    Unsolved 9 Feb 2023, 07:23
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved 9 Feb 2023, 03:01
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved 9 Feb 2023, 02:43
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • This topic is deleted!

    Unsolved 24 Jan 2023, 16:22
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • This topic is deleted!

    Unsolved 17 Jan 2023, 06:45
    0 Votes
    1 Posts
    334 Views
    No one has replied
  • Forum notifications menu stuck on loading

    Unsolved 12 Jan 2023, 12:42
    0 Votes
    7 Posts
    766 Views
    @JonB News sites are just an example, but it's everywhere. I visited my parents on holiday and they wanted to play me a video on youtube. I've forgotten that you have to watch an ad for half a minute before you can watch anything and then it interrupts you couple of times in the middle too. Hell no! Whenever I enter internet without a blocker my eyes/ears bleed. If a site blocks me because I block ads I just close it. There's more than enough alternatives.
  • This topic is deleted!

    Unsolved 8 Jan 2023, 05:48
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Stop russian propaganda!

    Locked Unsolved 20 Dec 2022, 19:43
    0 Votes
    7 Posts
    1k Views
    FYI I am closing this thread; Andy and I do not need to keep repeating the same thing over and over again.
  • Explaining code

    Unsolved 10 Dec 2022, 15:21
    0 Votes
    3 Posts
    776 Views
    @AnneRanch said: As usual , I like to get plain English description of the following pointer usage // QMdiArea is a container of subwindows // Get a list of pointers to those subwindows and assign it to a local list variable named "windows" QList<QMdiSubWindow *> windows = mdiArea->subWindowList(); // Assign i-th element of that list to a local variable "mdiSubWindow" QMdiSubWindow *mdiSubWindow = windows.at(i); // QMdiSubWindow is a container that hosts a widget. // Retrieve a pointer to that widget // Try to cast that pointer to a pointer to type MdiChild and assign the result to local variable "child" // If the cast succeeds then the variable "child" points to the widget hosted by QMdiSubWindow // If the cast fails (widget is not a MdiChild class) then the variable "child" is a nullptr MdiChild *child = qobject_cast<MdiChild *>(mdiSubWindow->widget()); somebody comes up with a way to memorize what is definition and what is a declaration You can try to remember it by imagining a herald on a town square. He's declaring, or in other words announcing that something exists e.g. "Hello good people. The function x exists! Let's be happy!". Then someone from the crowd asks "ok, but what is it?" and a local scientist defines it, or in other words explains/describes it in detail, saying that "x is this and that my friends and it does this in that way". Herald is your header declaration guy. Scientist is your cpp definition guy.
  • This forum needs a bigger upvote button

    Unsolved 22 Nov 2022, 12:14
    3 Votes
    11 Posts
    2k Views
    @mzimmers I confirm the guess of @JonB. If the thread is already marked as solved you have to use the "Topic Tools" button, "Mark as Unsolved" and then you'll be able to select the answer you want.
  • old hacker...low tolerance

    Unsolved 23 Mar 2022, 20:30
    3 Votes
    47 Posts
    12k Views
    @mzimmers said in old hacker...low tolerance: Let's all quit, move to Florida and go golfing. I retired some years ago (never been busier, though), I would not move to the USA, but the Caribbean looks interesting. Especially when they are turning their backs on the dollar system (which turned its back on them years ago). https://www.stvincenttimes.com/st-kitts-nevis-to-make-bitcoin-cash-legal-tender-by-march-2023/
  • This topic is deleted!

    Unsolved 25 Nov 2022, 10:35
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • This topic is deleted!

    Solved 18 Nov 2022, 08:00
    0 Votes
    3 Posts
    190 Views
  • To build bluteooth application in QT .....

    Unsolved 11 Nov 2022, 14:40
    0 Votes
    5 Posts
    704 Views
    @AnneRanch said in To build bluteooth application in QT .....: sudo apt install qtconnectivity5-dev and reboot. qrt@qrt-desktop:~$ sudo apt install libbluetooth-dev now read again what you wrote in the first line and typed in the second
  • This topic is deleted!

    Unsolved 10 Nov 2022, 18:22
    0 Votes
    1 Posts
    28 Views
    No one has replied
  • Looking for "windowing " expert.

    Unsolved 12 Oct 2022, 13:41
    0 Votes
    13 Posts
    2k Views
    @JonB OK, I have posted similar subject elsewhere. The discussions went nowhere, so I decided to try the "OS / window event" approach here. Perhaps I need to find how the new process result of bluetoothctl command physically highlights the text. If I can solve that , I am sure I can find a way to "hook into" whatever event highlights the text. PS My OS is Linux .
  • Why cling onto RegEx?

    Moved regex string text 9 Sept 2022, 14:03
    0 Votes
    13 Posts
    2k Views
    @candy76041820 said in Why cling onto RegEx?: 1a. Well it's just a makeshift & demonstrative snippet to convey my idea of usting something instead of regex, so don't be so picky. Your point was to demonstrate that a simpler solution was available. However, if you can't demonstrate that the simpler solution does everything required then it isn't a solution and you haven't demonstrated anything. It's hardly being "picky" to point this out!
  • QML: layouts vs. anchors

    Solved 19 Oct 2022, 00:17
    0 Votes
    9 Posts
    5k Views
    Yup, that's right.
  • 0 Votes
    2 Posts
    779 Views
    Hi, welcome to the forum. Qt's ownership model was created looong before C++ added move semantics and smart pointers. It has its own way of handling it via the parent child mechanism and it works fine. There's absolutely no need to mix those two models just because the standard added it. Apart from that QObjects are non-copyable and non-movable by design, so things like lineEdit_local = QLineEdit or std::move(QLabel... are out of the question. The library is just not designed around references, so changing it would pretty much mean rewriting entire Qt into something else. Besides, C++ Core Guidelines are just that, guidelines for designing code. Qt was designed waaaaay before they were and it follows quite a different philosophy. It's wort remembering that Qt's fundamental design and rules were created before even C++98. At that point in time there were different approaches emerging and Qt and std:: went different ways. It doesn't automatically mean one or the other is better or worse. They both accomplish roughly the same idea, just in different ways. Trying to combine them is not a good idea though. And just to clarify - even if you'd make QObject movable the method you want to write would be QWidget& addWidget(QWidget&& w) and invocation would be addWidget(QLabel(tr("Message:")));. Objects created as in-line parametrs are already r-values, so move is not necessary in that case. The way you wrote it wouldn't compile. You can't use move to turn r-value into a pointer.