Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Zooming/Scrolling issue with QWheel Event

    Solved qwheel qtextedit zooming
    4
    0 Votes
    4 Posts
    2k Views
    M
    Thank buddy for your searching ! But could you please share how do you implement in mainwindow? I am using a qtextedit in my mainwindow where I want to zoom and when I implement by creating an instance of this class i am getting errors. Thank you.
  • the program closes without error

    Solved
    7
    0 Votes
    7 Posts
    491 Views
    serkan_trS
    @J-Hilk yes that worked, thank you
  • error: cannot find -llzma

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    N
    @jsulm I tried "sudo apt-get install -y liblzma-dev" , It Works
  • How to use qmlRegisterUncreableType

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    serkan_trS
    @sierdzio Thank you
  • How can i rearrange the series of pushbutton in a scroll area in my custom order

    Moved Solved
    5
    0 Votes
    5 Posts
    325 Views
    jsulmJ
    @azhagan2 Still not sure I understand. You want to show only one button. Then hide it and show another one and so on?
  • How can I disable compiler optimizations for a release build?

    Unsolved qmake windows optimization
    1
    0 Votes
    1 Posts
    978 Views
    No one has replied
  • How can i send file over http with Qt?

    Unsolved
    3
    0 Votes
    3 Posts
    376 Views
    SGaistS
    Hi, Beside @JonB suggestions, what is the lifetime of mgr ? You also don't do any error checks which is a bad idea.
  • QDockWidget titlebar stylings

    Unsolved
    1
    0 Votes
    1 Posts
    126 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    16 Views
  • I want my Prebuilt application LogDisplay to be integrate with my other application

    Unsolved
    2
    0 Votes
    2 Posts
    184 Views
    M
    @Aviral-0 said in I want my Prebuilt application LogDisplay to be integrate with my other application: LogDisplay* logDisplay = new LogDisplay(this); // create LogDisplay widget QVBoxLayout* layout = new QVBoxLayout(); // create a vertical layout layout->addWidget(logDisplay); // add LogDisplay widget to the layout setCentralWidget(logDisplay); // set the central widget setLayout(layout); // set the layout on the central widget Hi, Hard to figure out what you want to do here. Anyway, all of this will be overwritten by the next line: ui->setupUi(this);
  • How to compile headers with multiple cpp files

    Solved
    2
    0 Votes
    2 Posts
    174 Views
    Christian EhrlicherC
    I'm not aware of a Qt editor and even if you mean QtCreator it's just an IDE an not a compiler. If you want to use a header in all of your three sources than include them in all three.
  • Help me with "connect" syntax, again.

    Unsolved
    7
    0 Votes
    7 Posts
    487 Views
    Chris KawaC
    C'mon. It's one function with 4 parameters. It doesn't need a book. It's what you learn on the first Qt lesson. We've been over this countless times for almost 4 years now. Maybe create an empty project and just add a button and practice just connects? It really shouldn't be that hard for you after all that time. I really don't want to sound like an a-hole, but it's really getting annoying to see dozen of people have to repeat the same things over and over and over and over and over and... you get the point. @AnneRanch said: I just spent a time to find out, the obvious, that "connect" needs to be in code before "emit" Well... that's... I don't want to use word "obvious", but if you don't connect anything how is Qt supposed to know what you want to be called when you emit? It's like declaring a variable before you can use it. Yes, the thing needs to exist first before it can be used. Same with connection. It has to exist to be triggered. Function has to be declared before it is called. Class has to be declared before it is instantiated. Pretty much everything in C++ works this way. So the "connect" AKA callback FUNCTION It's not a callback function. It's a function that registers a callback (slot) with a signal. When an object emits a signal a slot of another object is called. That's all there is to it. It's very basic. The documentation is more than exhaustive. If you want the low level detail (you don't need them to use it) there's this article. uses SIGNAL / SLOT declared as functions as a macro parameter No. SIGNAL and SLOT are macros that turn whatever you pass them into strings, e.g. if you type SLOT(foo()) it will turn it into string "foo()". These strings are used as keys to look up function pointers. That's one of the reasons we've been trying to convince you for years to start using the pointer syntax. It's easier to understand, faster, safer... ah, I won't repeat myself. You know it already. We've repeated it countless times.
  • Bug with `findChildren()` and `deleteLater()` causes crash

    Unsolved
    3
    0 Votes
    3 Posts
    550 Views
    Christian EhrlicherC
    ... or don't use deleteLater() for those objects.
  • Copying CSV file from linux to pendrive causes format change how to fix it ?

    Unsolved
    4
    0 Votes
    4 Posts
    262 Views
    JonBJ
    @mranger90 Surely the OP would have allowed for that before posting?! :)
  • How to assign values to multidimensional QList

    Solved
    6
    0 Votes
    6 Posts
    582 Views
    JonBJ
    @emazed said in How to assign values to multidimensional QList: so the element must exists before i can copy a value in it. ok Yes you must create the elements for each dimension before you can address them. A C array v[10][5][8] is pre-sized to hold all the elements. QList does not offer a "set/re-size" method at Qt5 (so you have to append), though it does at Qt6. QVector has always had a resize(). You could use resize() to create elements/make it more like the C array. Although it's not an issue at Qt6, I would use a QVector rather than a QList if i wanted to approximate the C.
  • qtwebengine slow resize

    Unsolved
    1
    0 Votes
    1 Posts
    216 Views
    No one has replied
  • QIntValidator again

    Unsolved
    1
    0 Votes
    1 Posts
    176 Views
    No one has replied
  • How to use QVector<QRgb> in QwtColorMap?

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • Drag and Drop when source is deleted

    Unsolved
    6
    0 Votes
    6 Posts
    533 Views
    Z
    @SGaist @wrosecrans, this program is a submodule , which gets external data to update. So I remove old plots and move another. There is main problem in existing connections with drag and drop But if there is no way to "reconnect drag and drop" from deleted widget, okay, thank you for help
  • How to draw a border around a pixmap derived from png

    Solved
    15
    0 Votes
    15 Posts
    4k Views
    kshegunovK
    Yes indeed. I completely missed that rightmost image pixel. Do you mind opening a pull request so I can merge this in the repo?