Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.8k Posts
  • Raspberry Pi EGL VNC?

    Solved
    2
    0 Votes
    2 Posts
    963 Views
    pauleddP
    Problem solved by starting my Qt App via -platform xcb suffix.
  • What class or types can be used to do a real time image plot?

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    mrjjM
    @Flavio-Mesquita Good plan. also IF raw painting is too slow, its not too late there to go openGL or anything accelerated
  • QWidget resize not restoring window size

    Solved qsettings linux
    5
    0 Votes
    5 Posts
    1k Views
    D
    /home/user/daiajo/.config/Daiajo/Combo.conf Found them there.
  • 0 Votes
    4 Posts
    1k Views
    Pablo J. RoginaP
    @nurettin I see, gettting the scxml + js outside the application seems more versatile I got a hint on stackoverflow Could it be possible you provide a link to such Q&A for anybody interested? Thanks
  • audiooutput

    Unsolved
    23
    0 Votes
    23 Posts
    5k Views
    SGaistS
    When changing any of these parameters, you have to modify the generated data that you send to the audio output. So I don't see the problem there.
  • Qt error with qmake?

    Unsolved
    4
    0 Votes
    4 Posts
    934 Views
    Pablo J. RoginaP
    @Mr-Crowley if you problem is solved, please don't forget to mark your post as such. Thanks.
  • Variable in a QRegularExpression?

    Moved Unsolved
    2
    0 Votes
    2 Posts
    435 Views
    Pablo J. RoginaP
    @igor_stravinsky what about constructing the pattern before and using setPattern() method to apply it? pseudo-code: QString myVariable = "bar"; QString myPattern = "^foo.*" + myVariable + "$"; QRegularExpression re; re.setPattern(myPattern);
  • QMap max size

    Solved
    3
    0 Votes
    3 Posts
    870 Views
    E
    Yep, the issue was indeed in the file. Thanks!
  • How to call 200 functions with 1 variable?

    Unsolved
    19
    0 Votes
    19 Posts
    3k Views
    mrjjM
    @MasterBlade So its really 200 different function with nothing in common ? like Card 1 Burn() Card 2 Freeze() Card 3 ExtraTurn() ....
  • How to handle dynamic elements in qml?

    Unsolved
    3
    0 Votes
    3 Posts
    607 Views
    A
    I am still unable to get this working using layouts. When I maximize the application window using the maximize/minimize icon on the UI, I can see the original output along with the new resized output on the UI. I also tried the example given on http://doc.qt.io/qt-5/qtquicklayouts-overview.html. RowLayout { id: layout anchors.fill: parent spacing: 6 Rectangle { color: 'azure' Layout.fillWidth: true Layout.minimumWidth: 50 Layout.preferredWidth: 100 Layout.maximumWidth: 300 Layout.minimumHeight: 150 Text { anchors.centerIn: parent text: parent.width + 'x' + parent.height } } Rectangle { color: 'plum' Layout.fillWidth: true Layout.minimumWidth: 100 Layout.preferredWidth: 200 Layout.preferredHeight: 100 Text { anchors.centerIn: parent text: parent.width + 'x' + parent.height } } } On maximizing the window using maximize/minimize icon I can see the two rectangles as seen in the original output as well as the two rectangles after resizing.
  • This topic is deleted!

    Locked Solved
    2
    0 Votes
    2 Posts
    25 Views
  • Detect hardware button events on a USB camera

    6
    0 Votes
    6 Posts
    3k Views
    F
    @aha_1980 Thank you for your advice. It seems libusb is dead. I have a search for a solution on linux https://stackoverflow.com/questions/29355100/uvc-camera-still-pin-capture-in-linux-c But there is no libevdev on osx.
  • Update QTreeView on add data to subitem

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    VRoninV
    @klynxe said in Update QTreeView on add data to subitem: emit dataChanged(index(i,0), index(i,4)); You are passing the wrong a indexes. Those are 4 columns in the top level, you should pass 1 more argument specifying the parent to each index() call
  • Camera + UDP receiver.. Which functionalities to use?

    Solved udp camara jpg
    8
    0 Votes
    8 Posts
    1k Views
    T
    @SGaist Thank you very much. That was it.
  • 0 Votes
    14 Posts
    3k Views
    S
    @JonB the NotOpen enum is from QIODevice::OpenModeFlag. I accidentally used it in my switch as QSerialPort::NotOpen (suggested by autocompleter), which compiled ok, but caused this problem.
  • when client send msg by UDP, How to know the IP of client?

    Solved
    3
    0 Votes
    3 Posts
    621 Views
    JonBJ
    @qazaq408 You look at the server's QUdpSocket's data receiving methods for this, as they will include the sender's IP address, e.g. http://doc.qt.io/qt-5/qudpsocket.html#readDatagram
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    42 Views
    No one has replied
  • how to get current updated time at each tickerlabel in x axis data plot

    Unsolved
    1
    0 Votes
    1 Posts
    330 Views
    No one has replied
  • Subdirs project with QML LNK2001Error

    Solved
    4
    0 Votes
    4 Posts
    540 Views
    SGaistS
    Hi, Unrelated to your topic, but I'd recommend not prefixing your custom classes with Q, this will generate confusion for people reading your code (you included) and might clash one day with Qt if they implement a class named like that.
  • Importing C++ Visuals into QML

    5
    0 Votes
    5 Posts
    840 Views
    VRoninV
    @GoldRatio said in Importing C++ Visuals into QML: So if I made something using the vtk library in a C++ backend, It couldn't get displayed? https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6