Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QOAuth2AuthorizationCodeFlow and response

    Unsolved oauth2.0
    1
    0 Votes
    1 Posts
    403 Views
    No one has replied
  • generic sql database copy

    Unsolved
    7
    0 Votes
    7 Posts
    442 Views
    HoMaH
    OK - I got it. I will have a look. But I have to admit, that this is the only piece that is missing - everything else I have done before and know how to do - so knowing about the references would really be helpful. On the other hand: I might just use pragmas and switch references off - with this I should be able to copy the tables in any order ... Anyhow - as always: thanks a lot for your support!
  • QTreeview Apply delegate based on specific Condition

    Solved
    5
    0 Votes
    5 Posts
    434 Views
    DonCoderD
    @mrjj I totally agree with you. Thanks It answers my question
  • How to get Raw image frame data (RGB) from webcamera (Webcam)

    Solved
    2
    0 Votes
    2 Posts
    600 Views
    SGaistS
    Hi and welcome to devnet, For that level of control, you will have to go lower level that what QCamera proposes. You also have to take into account that not all camera provides RGB data. In your case maybe OpenCV will be a better fit for that part of your code.
  • QNetworkManager Http Post binary file - error connection closed

    Unsolved
    2
    0 Votes
    2 Posts
    259 Views
    Christian EhrlicherC
    Since we don't know what your server needs we can't really help here.
  • How to call another project's function ?

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    KH-219DesignK
    @Mucahit , I share with you this little fable I just invented in the spirit of making amends. Some forum threads (here and elsewhere, such as StackOverflow) seem to inevitably take on an "us versus them" ("experts versus n00bs") aura, and I wish I could avoid it more easily. I offer this in the spirit of helping both sides (expert, n00b, and those in-between) to understand each other better. You are trying to play a chess game against a chess opponent named Qt. You pick up a rook and move it to a part of the chessboard, and the chessboard (let's assume it is a "smart chess board" with electronic detection of your move)... the chessboard beeps and balks and the game halts. You show us a picture of your chessboard and we go "well of course it failed, you cannot move the rook like that, because it's against the rules of chess." Next you pick up a pawn and place it down somewhere. The chessboard beeps and fails again. Now we tell you: "well of course! You aren't allowed to move a pawn in that way either." What is the solution in order to end this frustration? The solution is learn the rules of chess (C++) before attempting to apply chess (C++) to this particular adversary (Qt). (Apologies to Qt for casting it in an adversarial role, but all frameworks appear that way on some days...) You could, of course, persist in learning both chess and Qt via this repeated method of trial and error. However, learning in this way is unnecessarily slow, frustrating, fragile, and incomplete. People will keep telling you "stop, don't do that!" and it can be demoralizing for you and for the person warning you. Those of us trying to help are scratching our heads in bafflement thinking "why don't they just read a booklet on the rules of chess (C++)?" On the topic of reading the rules of C++: While Qt changes yearly (or more) and is often underdocumented (or documented in hard-to-find corners of the web), the core of C++ (especially if you set aside concurrency) has been stable for decades and is documented in abundance in all kinds of media and in all the world's major spoken languages. There is a huge return on investment that you will enjoy by stepping back briefly to study C++.
  • Retrieve a QWidget inside QTableWidgetItem

    Solved
    6
    0 Votes
    6 Posts
    611 Views
    mrjjM
    @LCorona Np, I also forget it sometimes as the Designer gives them names but when you insert from code they don't have:) Oh yes you are right. The sender is the ofc the WidgetColorPicker. My bad :) just as a note: If your list is stable, meaning you adds the rows and don't delete any or insert new we could just have stuff the index via a dynamic property pColor->setProperty("myindex", i); and in the slot int index = widget->property("myindex").toInt(); https://doc.qt.io/qt-5/qobject.html#setProperty
  • 0 Votes
    3 Posts
    10k Views
    S
    add: --host-cc=x86_64-linux-gnu-cc --host-os=linux may solve this. good luck!
  • Issue setting QLibrary path

    Unsolved
    18
    0 Votes
    18 Posts
    1k Views
    Pablo J. RoginaP
    @Tiago-M-Pinto said in Issue setting QLibrary path: Just solved the problem so don't forget to mark your post as solved!
  • Why after linking the OpenCV libraries, Mat objects are still 'undefined'?

    Solved
    28
    0 Votes
    28 Posts
    5k Views
    Pablo J. RoginaP
    @georgiav said in Why after linking the OpenCV libraries, Mat objects are still 'undefined'?: this seems to work fine! so please don't forget to mark your post as solved!
  • Application hangs until i press "Enter" key in the console

    Solved
    3
    0 Votes
    3 Posts
    361 Views
    ODБOïO
    @Cobra91151 hi Thank you for your input You are right, my ui hangs because of 2 javascript for loops in one of my qml files.
  • CMake Project Problem With MediaPlayer and VideoWidget

    Unsolved
    5
    1 Votes
    5 Posts
    1k Views
    D
    I still have the problem. I have no problem about the Qt5.9, but I have a problem in Qt5.12
  • QChart Axes auto-resizing without telling me

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    K
    I'm back, and I solved it! I'll leave the answer here for anyone else who runs into this. So the problem was the axis creation method I was using, even though that's in an example. Probably because I was using dynamic data that was going to change it's range, the example didn't exactly cover that. I'm now creating axes the proper way, and the key here is that the axes are then attached to the data, both when I initialize the graph, and each time I change the lineseries in my update_graph() function. I finally found a guy with a similar problem, and was able to base my solution off the answer given. Thanks guy from 2018 on Stack Overflow! https://stackoverflow.com/questions/53873351/qt-adjusting-axes-does-not-adjust-the-chart-itself My modified code is below: //Spline Graph initialSplineSeries = new QSplineSeries(); initialSplineSeries->setName("initial spline series"); for(int i = 0; i < 134; ++i) { initialSplineSeries->append(wavelength_arr[i], 0); } splineChart = new QChart(); splineChart->legend()->hide(); splineChart->addSeries(initialSplineSeries); splineChart->setTitle("Current Wavelength Mix"); axisX = new QValueAxis; axisY = new QValueAxis; axisX->setRange(351, 750); axisY->setRange(0, 100); splineChartView = new QChartView(splineChart); splineChartView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); splineChart->setAxisX(axisX); splineChart->setAxisY(axisY); initialSplineSeries->attachAxis(axisX); initialSplineSeries->attachAxis(axisY); void DimmerWidget::update_graph() { splineChart->removeAllSeries(); newSplineSeries = new QSplineSeries(); newSplineSeries->setName("fresh series"); int white_cont; int red_cont; int blue_cont; int total_cont; for(int i = 0; i < 134; ++i) { white_cont = (white_arr[i] * dimm_currVal_int[0]) / 1000000; red_cont = (red_arr[i] * dimm_currVal_int[0]) / 1000000; blue_cont = (blue_arr[i] * dimm_currVal_int[0]) / 1000000; total_cont = white_cont + red_cont + blue_cont; newSplineSeries->append(wavelength_arr[i], total_cont); } splineChart->addSeries(newSplineSeries); newSplineSeries->attachAxis(axisX); newSplineSeries->attachAxis(axisY); } Good luck to anyone who finds this in the future, I hope it helps!
  • Installation on Ubuntu 20.04

    Solved
    28
    0 Votes
    28 Posts
    5k Views
    SPlattenS
    @mrjj , I'm in the folder: /home/sy/Qt/Tools/QtCreator/bin Then ran: ./qtcreator.sh & And it works, thank you!
  • QWidget is not updating it's GUI

    Unsolved
    2
    1 Votes
    2 Posts
    2k Views
    JonBJ
    @SirMeMeME said in QWidget is not updating it's GUI: self.counter.intValue = 20 QLCDNumber::intValue is get-only. Your Python/PyQt5 perhaps does not warn you that you cannot set it like you try to in your code. Use void QLCDNumber::display(int num) to set the value: self.counter.display(20). There should be no need for your self.counter.update() call. Don't know what call you are using to update your progressbar.
  • Transparent widgets are not moving with their parent

    2
    1 Votes
    2 Posts
    1k Views
    T
    can anyone help please ? i'm having the exact same problem except that i wanna move the widgets separately
  • QVideoWidget does not repaint

    Unsolved
    2
    0 Votes
    2 Posts
    683 Views
    M
    @Harry123 I have the same bug. Have you find any solution since your post ?
  • QVideoWidget does not hold latest frame

    Unsolved qt5.11 qmediaplayer qvideowidget c++ qt
    2
    0 Votes
    2 Posts
    793 Views
    M
    @magicstar I have the same problem. Have you find a solution ?
  • 0 Votes
    6 Posts
    868 Views
    I
    @Kent-Dorfman Thank you! For my own host that would be a solution, but I cannot know that other hosts do the same. The VST standard is widespread, with very many host applications available on the market. And as the plugin I am using QT in should be compatible with any host, I would still love a way to tell it to not intercept those - a non-QT plugin mode if you will.
  • App for bluetooth scanning

    Unsolved
    22
    0 Votes
    22 Posts
    2k Views
    M
    I have been using BLE suite this app has a primary scanner view option that detects all the available devices using the Android operating system.